Browse Source

Merge pull request #260 from jplock/jp-compress-db-backup

Compress Postgres backup file
Luke Cyca 10 years ago
parent
commit
d616d63da5
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