Browse Source

Compress Postgres backup file

Compress Postgres backup file
Justin Plock 11 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
 cd /home/
58
 cd /home/
59
 
59
 
60
 # Dump PostgreSQL to file
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
 # Do backups
63
 # Do backups
64
 for dir in $DIRS; do
64
 for dir in $DIRS; do

Loading…
Cancel
Save