HCoop
/
clinton
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5213ef1
)
rsync-shell: Enforce bandwidth limit of 325 KB/s.
author
mwolson_admin
<mwolson_admin@deleuze.hcoop.net>
Wed, 3 Sep 2008 08:04:06 +0000
(
04:04
-0400)
committer
mwolson_admin
<mwolson_admin@deleuze.hcoop.net>
Wed, 3 Sep 2008 08:04:06 +0000
(
04:04
-0400)
rsync-shell
patch
|
blob
|
blame
|
history
diff --git
a/rsync-shell
b/rsync-shell
index
71482d3
..
916e136
100755
(executable)
--- a/
rsync-shell
+++ b/
rsync-shell
@@
-18,7
+18,7
@@
sub backup {
sub rsync {
my ($cmdline) = @_;
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";
}
die "Incorrect arguments to rsync.\n";
}