Discussion:
[BackupPC-devel] nice and ionice
Richard Shaw
2012-05-03 18:09:15 UTC
Permalink
I think I know the answer but I'm looking for confirmation here. If I
want to nice AND ionice a backup, I'm assuming I need to use a script
instead so I get a full shell? Something like:

${RsyncClientCmd} = '<script> $host argList+'

--- script ---
#!/bin/bash
ionice -c3 -p $$
<normal ssh and rsync command>
-- end scrpt ---

Thanks,
Richard
Tyler J. Wagner
2012-05-04 07:22:25 UTC
Permalink
Post by Richard Shaw
I think I know the answer but I'm looking for confirmation here. If I
want to nice AND ionice a backup, I'm assuming I need to use a script
No. I do this:

$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host /usr/bin/nice -n 19
/usr/bin/ionice -c 3 $rsyncPath $argList+';

Nice calls ionice.

Tyler
--
"What can be asserted without evidence can also be dismissed without
evidence."
-- Christopher Hitchens
Loading...