I run a nightly backup, which takes about 1 hour. During that the performance is bad as hell.
It looks pretty much like this:
# DB dump
ionice -c 3 nice -n 20 mysqldump --skip-lock-tables --user=foo --password=bar DBname > dump.sql
ionice -c 3 nice -n 20 gzip -9 ... dump.sql.gz
# copy to new backup folder
ionice -c 3 nice -n 20 rsync -a /backup/path/files
# delete old backup folder
ionice -c 3 nice -n 20 rm my/old_backup/path/ -rf
I think the rsync is killing it.
Do you see any improvement?