use pxz for database dumps, might make them a good deal faster
This commit is contained in:
parent
4015efd1c6
commit
6b0faf84c0
2 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
DB=$1
|
||||
|
||||
# Make our latest backup
|
||||
/usr/bin/pg_dump --exclude-table-data=sessions -C $DB | /usr/bin/xz > /backups/$DB-$(date +%F).dump.xz
|
||||
/usr/bin/pg_dump --exclude-table-data=sessions -C $DB | /usr/bin/pxz > /backups/$DB-$(date +%F).dump.xz
|
||||
|
||||
# Also, delete the backup from a few days ago.
|
||||
rm -f /backups/$DB-$(date --date="2 days ago" +%F).dump.xz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue