Browse Source

Compress Postgres backup file

Compress Postgres backup file
Justin Plock 10 years ago
parent
commit
e47e3774dd
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      roles/tarsnap/files/tarsnap.sh

+ 1
- 1
roles/tarsnap/files/tarsnap.sh View File

@@ -58,7 +58,7 @@ fi
58 58
 cd /home/
59 59
 
60 60
 # Dump PostgreSQL to file
61
-sudo -u postgres pg_dumpall -c > /decrypted/postgresql-backup.sql
61
+sudo -u postgres pg_dumpall -c | gzip > /decrypted/postgresql-backup.sql.gz
62 62
 
63 63
 # Do backups
64 64
 for dir in $DIRS; do

Loading…
Cancel
Save