Ver código fonte

Make paths for postgres dumpfiles absolute

The script should be able to work anywhere on the server.
DricomDragon 5 anos atrás
pai
commit
59b980feee
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      ServerScripts/Backup/j7backalllocal

+ 3 - 3
ServerScripts/Backup/j7backalllocal

@@ -6,7 +6,7 @@ echo 'Backing up jovian platform ...'
 
 # Backup all postgres just in case
 echo 'Backing up PostgreSQL ...'
-sudo -u postgres pg_dumpall > dumpfile
+sudo -u postgres pg_dumpall > /home/jovian/Local/Backup/Postgres/dumpfile
 echo 'PostgreSQL done.'
 
 echo 'Backing up GOGS ...'
@@ -16,12 +16,12 @@ sudo chown jovian:jovian /home/jovian/Local/Backup/Gogs/gogs-backup-2*
 echo 'GOGS done.'
 
 echo 'Backing up KANBOARD ...'
-sudo -u postgres pg_dump kanboard_db > kanboard_dumpfile
+sudo -u postgres pg_dump kanboard_db > /home/jovian/Local/Backup/Postgres/kanboard_dumpfile
 echo 'KANBOARD done.'
 
 echo 'Backing up WIKI ...'
 echo '> wiki db ...'
-sudo -u postgres pg_dump wiki_db > wiki_dumpfile
+sudo -u postgres pg_dump wiki_db > /home/jovian/Local/Backup/Postgres/wiki_dumpfile
 
 echo '> wiki files ...'
 tar chf /home/jovian/Local/Backup/Wiki/mediawiki.tar /var/www/mediawiki