Selaa lähdekoodia

Compress Postgres backup file

Compress Postgres backup file
Justin Plock 10 vuotta sitten
vanhempi
commit
e47e3774dd
No account linked to committer's email address
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      roles/tarsnap/files/tarsnap.sh

+ 1
- 1
roles/tarsnap/files/tarsnap.sh Näytä tiedosto

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…
Peruuta
Tallenna