From: mwolson_admin Date: Wed, 3 Sep 2008 08:04:06 +0000 (-0400) Subject: rsync-shell: Enforce bandwidth limit of 325 KB/s. X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/commitdiff_plain/f1a20ec86444a5b8185908c0262037de7e2e286a rsync-shell: Enforce bandwidth limit of 325 KB/s. --- diff --git a/rsync-shell b/rsync-shell index 71482d3..916e136 100755 --- a/rsync-shell +++ b/rsync-shell @@ -18,7 +18,7 @@ sub backup { sub rsync { my ($cmdline) = @_; - if ( $cmdline !~ m!^--server --sender -vre\.iL \. /vicepa/hcoop-backups/files/[0-9]{4}\.[0-9]{2}\.[0-9]{2}$!s ) { + if ( $cmdline !~ m!^--server --sender -vre\.iL --bwlimit=325 \. /vicepa/hcoop-backups/files/[0-9]{4}\.[0-9]{2}\.[0-9]{2}$!s ) { die "Incorrect arguments to rsync.\n"; }