mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
use pxz for database dumps, might make them a good deal faster
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
- postgresql-contrib
|
||||
- postgresql-plpython
|
||||
- python-psycopg2
|
||||
- pxz
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
tags:
|
||||
- packages
|
||||
|
||||
Reference in New Issue
Block a user