浏览代码

Add gogs backup section

DricomDragon 5 年之前
父节点
当前提交
5a5e3f886c
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      ServerScripts/Backup/j7backalllocal

+ 5 - 0
ServerScripts/Backup/j7backalllocal

@@ -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