-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gilles Mocellin wrote: > Le samedi 21 avril 2007 21:21, Sven Arvidsson a écrit : >> There's ionice from the schedutils package, but I don't know how well it >> works. > > I use it for my hourly backup with rsnapshot. > Before I do that, I was really annoyed by the backup, now, I'm not anymore. > > I combine ionice and nice, I don't know if it's usefull, but I really want my > backup to be quite. > > [EMAIL PROTECTED]:~$ cat /etc/cron.d/rsnapshot > 9 * * * * root mount /sauvegarde > /dev/null 2>&1 > 10 * * * * root ionice -c3 nice -n19 /usr/bin/rsnapshot horaire > 20 23 * * * root ionice -c3 nice -n19 /usr/bin/rsnapshot quotidien > 21 23 * * 0 root ionice -c3 nice -n19 /usr/bin/rsnapshot > hebdomadaire > 22 23 1 * * root ionice -c3 nice -n19 /usr/bin/rsnapshot mensuel
I think that is exactly what I want. I read the document and it said that non-root user cannot set class 3 for `ionice`. So I use class 2, data 7. The following is the script that I just wrote. I will see how the program runs. Thanks very much to you two. :) $ cat bin/mylprun.sh #!/bin/sh nice -n19 ionice -c2 -n7 $1 - -- Cheers, Wei Chen http://www.acplex.com/people/wchen/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGKw/LCIqXQV6BF28RAt+nAJ9u+3MirAFFohd8gXHOyAUSPElYYQCgxxZL RL2F1JgKjUDIvtgYd89hrn8= =pIDp -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]