mysqld backup: try adding ionice into things.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
e5f74d8566
commit
e2523e235d
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
DB=$1
|
||||
|
||||
# Make our latest backup
|
||||
/bin/mysqldump --user=root --add-drop-database $DB | /usr/bin/xz > /backups/$DB-$(date +%F).dump.xz
|
||||
ionice -c3 /bin/mysqldump --user=root --add-drop-database $DB | /usr/bin/xz > /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