diff options
author | Joerg Jaspert <joerg@debian.org> | 2012-05-18 21:52:20 +0200 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2012-05-18 21:52:20 +0200 |
commit | 8c7427db78c52e5a992d16d7b12e0202419e5b15 (patch) | |
tree | cc8dafefaba3c358e8ecb3e94caaf4451e6d7b08 /bin | |
parent | 2511ccec9bfab0c984f631d736963ab77c714c14 (diff) |
* bin/ftpsync: Add a RSYNC_EXTRA option,
for the local admins to set extra rsync options, to be prepended to the
rsync call
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ftpsync | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ftpsync b/bin/ftpsync index 20af095..633dc55 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -299,9 +299,13 @@ RSYNC_OPTIONS2=${RSYNC_OPTIONS2:-"--max-delete=40000 --delay-updates --delete -- # Which rsync share to use on our upstream mirror? RSYNC_PATH=${RSYNC_PATH:-"debian"} +# Extra rsync options as defined by the admin locally. Won't be set +# to any default by ftpsync. Those will be added to EACH AND EVERY rsync call. +RSYNC_EXTRA=${RSYNC_EXTRA:-""} + # Now add the bwlimit option. As default is 0 we always add it, rsync interprets # 0 as unlimited, so this is safe. -RSYNC_OPTIONS="--bwlimit=${RSYNC_BW} ${RSYNC_OPTIONS}" +RSYNC_OPTIONS="${RSYNC_EXTRA} --bwlimit=${RSYNC_BW} ${RSYNC_OPTIONS}" # We have no default host to sync from, but will error out if its unset RSYNC_HOST=${RSYNC_HOST:-""} |