Browse Source

Backup postgres dbs

DricomDragon 5 years ago
parent
commit
b7221cf09e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ServerScripts/Backup/j7backalllocal

+ 6 - 0
ServerScripts/Backup/j7backalllocal

@@ -4,5 +4,11 @@
 
 echo 'Backing up jovian platform ...'
 
+# Backup postgres dbs
+sudo -u postgres pg_dump kanboard_db > kanboard_dumpfile
+sudo -u postgres pg_dump wiki_db > wiki_dumpfile
+
+# Backup all postgres just in case
+sudo -u postgres pg_dumpall > dumpfile
 
 echo 'End'