I am currently using rsync to backup my cPanel Full Backups (compressed, not incremental) to another sever.
I'm using this command-line on the source server (push method):
This in itself works fine and the server load on the source server stays below 4.00.
However on the receiving end, the server load goes up to 15.00 from time to time. Since i'm making backups of backups, time is of no concern. Is there any way to instruct rsync to also take the server load on the receiving end into consideration and slow things down if needed?
Things I came up with myself:
- Use --bwlimit XXXXX (can anyone suggest a good value for a 100 Mbit connection?).
- Create a script / cron job that runs every 30 minutes and only backs up a maximum of X files each run.
- Start rsync, SSH over to the other end and send instructions to lower the priority of rsync.
Thanks!
I'm using this command-line on the source server (push method):
Code:
nice -n19 ionice -c2 -n7 rsync -tr -e "ssh -p 1234" /backup/cpbackup/daily [email protected]:/rsbackup/SERVERNAME
However on the receiving end, the server load goes up to 15.00 from time to time. Since i'm making backups of backups, time is of no concern. Is there any way to instruct rsync to also take the server load on the receiving end into consideration and slow things down if needed?
Things I came up with myself:
- Use --bwlimit XXXXX (can anyone suggest a good value for a 100 Mbit connection?).
- Create a script / cron job that runs every 30 minutes and only backs up a maximum of X files each run.
- Start rsync, SSH over to the other end and send instructions to lower the priority of rsync.
Thanks!