nice and ionice

You can reduce the impact of a job by combining these two commands:

  1. nice modify the cpu scheduling of a command. Nicenesses range from -20 (most favorable scheduling) to 19 (least favorable)

  2. ionice modify the io scheduling class and priority of a command

options:

I have used the below command on my own servers and it works well:

/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/local/bin/backup.sh

These articles may also be of help: