1
0
Prechádzať zdrojové kódy

Add an example to backup gogs

DricomDragon 5 rokov pred
rodič
commit
8ca581e385
1 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  1. 7 0
      Guides/gogs.md

+ 7 - 0
Guides/gogs.md

@@ -82,6 +82,13 @@ Gogs natively manages backups. Prefer to use gogs tools instead of _squared whee
 
 **Beware** : please ensure that the user `gogs_app` has the same password on both instances ! You can change the password after the migration by using `ALTER ROLE gogs_app ENCRYPTED PASSWORD 'NewPassword';` and by changing the db password in `gogs/custom/conf/app.ini`.
 
+Example :
+```sh
+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*
+```
+
 ### Repositories
 
 `/home/gituser/gogs/gogs-repositories/`