Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
The first thing you should do is determine if it's the rsync causing the problem. –  symcbean Jan 7 at 13:35
I do think so. The DB dump doesn't take 1 hour. Can I somehow add a simple log text to the console to see what is finished when? –  Martin Jan 7 at 13:36
This is total guessing, but... How are your disks? I had a situation where someone else's server had RAID 5 with a dead disk, and it would DOS my dependent service every night during backups. –  Katherine Villyard Jan 7 at 13:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.