]> git.etc.gen.nz Git - etc-obnam.git/commitdiff
obnam can be pretty heavy on our laptops, make it back right down.
authorAndrew Ruthven <andrew@etc.gen.nz>
Tue, 22 Oct 2013 12:40:41 +0000 (01:40 +1300)
committerAndrew Ruthven <andrew@etc.gen.nz>
Tue, 22 Oct 2013 12:40:41 +0000 (01:40 +1300)
run-backup

index 359c8d35d654246fcc38da7adf547ae720f7fd2e..198ab3fd1f730bb14b1d41f565ea5874b777baf2 100755 (executable)
@@ -97,7 +97,9 @@ then
     exit
   fi
 
-  obnam --quiet --client-name=$CLIENT backup $WORKDIR $SOURCE
+  # We try to impact on the user as much as possible, so nice
+  # ourselves completely.
+  ionice -c idle nice obnam --quiet --client-name=$CLIENT backup $WORKDIR $SOURCE
 
   rm /var/lock/etc-obnam
   exit 0