|
@@ -4,6 +4,11 @@
|
|
|
|
|
|
echo 'Backing up jovian platform ...'
|
|
|
|
|
|
+# Backup gogs
|
|
|
+sudo -u gituser /home/gituser/gogs/gogs backup --target /home/gituser/
|
|
|
+sudo mv /home/gituser/gogs-backup-2* /home/jovian/Local/Backup/Gogs/
|
|
|
+sudo chown jovian:jovian /home/jovian/Local/Backup/Gogs/gogs-backup-2*
|
|
|
+
|
|
|
# Backup postgres dbs
|
|
|
sudo -u postgres pg_dump kanboard_db > kanboard_dumpfile
|
|
|
sudo -u postgres pg_dump wiki_db > wiki_dumpfile
|