From 5cc0592bad59b6f6d978b768924849be33a2145c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 5 Oct 2010 00:19:02 +0000 Subject: [PATCH] Take backup at lowest possible (non-idle) CPU priority, and idle I/O priority. --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 75c0308..67a9e1e 100755 --- a/backup.sh +++ b/backup.sh @@ -127,7 +127,7 @@ backup() # Pipe the stuff over ssh to ourselves, run pee to cat the contents to a # file and build a file list, respectivly. TARFILE=$DATE.tmp - TARCMD="ssh root@$computer \"tar --one-file-system -zcf - -C $filesystem . $lastcmd \ + TARCMD="ssh root@$computer \"nice -n 19 ionice -c3 tar --one-file-system -zcf - -C $filesystem . $lastcmd \ --exclude-from=$exf\" | pee \"cat > $TARFILE\" \"tar tzvf -\"" echo `date`" $computer: Running $TARCMD" >&2 eval $TARCMD > $DATE.idx -- 2.39.2