I run backups and big archives at the lowest priority so the rest of the server stays responsive.
nice -n 19 ionice -c3 tar -czf /backup/www.tar.gz /var/www
nice -n 19 gives the job the lowest CPU priority. ionice -c3 puts its disk access in the idle class, so it only gets I/O when nothing else wants it. The I/O priority only has an effect with schedulers that honor it, so on some systems the effect can be small. A job that never gets I/O time can also run very slowly, so use -c2 -n7 if it must finish.
Further reading: ionice manual page