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:
parent
2cc8fabdbf
commit
f136cfec2a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue