]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Support for BWLIMIT environment variable at sync-backups
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Mar 2015 21:58:55 +0000 (18:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Mar 2015 21:58:55 +0000 (18:58 -0300)
files/sync-backups

index 5787c408570f425880da467676547e5797970970..94e41f79b37c0f5a18e1d406e01ccd4477dc9281 100644 (file)
@@ -7,7 +7,7 @@
 BASENAME="`basename $0`"
 VOLUME="$1"
 MEDIA="/media/$VOLUME"
-BWLIMIT="2500"
+BWLIMIT=${BWLIMIT:=2500}
 IMAGES="/var/data/crypt/"
 RSYNC="ionice -c 3 nice -n 19 rsync -avH --delete --bwlimit=$BWLIMIT"
 CP="ionice -c 3 nice -n 19 cp"