Revision 8938
Added by Jing Tao about 10 years ago
src/scripts/bash/backup-metacat.sh | ||
---|---|---|
69 | 69 |
cp $METACATPROPERTIESPATH $DATADIR |
70 | 70 |
|
71 | 71 |
# Backup postgres |
72 |
su - postgres -c "pg_dumpall > $ARCHDIR/metacat-postgres-backup.sql"
|
|
72 |
su - postgres -c "pg_dumpall | gzip > $ARCHDIR/metacat-postgres-backup.gz"
|
|
73 | 73 |
|
74 | 74 |
# Backup the data files |
75 | 75 |
tar czf $ARCHDIR/datafiles-backup.tgz --exclude=$ARCHROOT $DATADIR |
Also available in: Unified diff
Added the code to gzip the output file in the dumpall command. This will save disk space.