mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
mariadb: set single-transaction on backups
We are seeing the backups here cause the wiki to become unresponsive. This might help it out and prevent it locking things while doing the backups. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
DB=$1
|
||||
|
||||
# Make our latest backup
|
||||
ionice -c3 /bin/mysqldump --user=root --add-drop-database $DB | /usr/bin/pxz -T2 > /backups/$DB-$(date +%F).dump.xz
|
||||
ionice -c3 /bin/mysqldump --single-transaction --user=root --add-drop-database $DB | /usr/bin/pxz -T2 > /backups/$DB-$(date +%F).dump.xz
|
||||
|
||||
# link to the latest backup
|
||||
ln -sf /backups/$DB-$(date +%F).dump.xz /backups/$DB-latest.xz
|
||||
|
||||
Reference in New Issue
Block a user