From: intrigeri Date: Sat, 18 Jul 2009 08:45:45 +0000 (+0200) Subject: dup: fixed bandwidthlimit test X-Git-Tag: backupninja-0.9.7~34 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=f45803230a839de092122f6843422097deff4eaa;p=matthijs%2Fupstream%2Fbackupninja.git dup: fixed bandwidthlimit test Thanks to Ian Beckwith for the patch. --- diff --git a/AUTHORS b/AUTHORS index dc0d2bd..c5fdf33 100644 --- a/AUTHORS +++ b/AUTHORS @@ -29,3 +29,4 @@ Adam Monsen - spec file updates Matthew Palmer -- halt loglevel feature dan@garthwaite.org -- reportspace bugfix Tuomas Jormola -- "when = manual" option +Ian Beckwith -- dup bandwidthlimit fix diff --git a/ChangeLog b/ChangeLog index 74cc3ca..c91ca38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,9 @@ version 0.9.7 -- UNRELEASED . New lvm option (default=disabled) to backup LVM metadata for every detected volume group. . Backup dmsetup info as well, for easier restoring of Luks headers. + dup: + . Fixed bandwidthlimit syntax error. Thanks to Ian Beckwith for + the patch. version 0.9.6 -- July 21, 2008 backupninja changes diff --git a/handlers/dup.in b/handlers/dup.in index aed6030..54b7709 100644 --- a/handlers/dup.in +++ b/handlers/dup.in @@ -106,7 +106,7 @@ duplicity_sub="`echo $duplicity_version | @AWK@ -F '.' '{print $3}'`" # --sftp-command ourselves scpoptions="$sshoptions" -if [ "$bandwidthlimit" =! 0 ]; then +if [ "$bandwidthlimit" != 0 ]; then [ -z "$testurl" ] || warning 'The bandwidthlimit option is not used when desturl is set.' scpoptions="$scpoptions -l $bandwidthlimit" fi