From 8c7427db78c52e5a992d16d7b12e0202419e5b15 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Fri, 18 May 2012 21:52:20 +0200 Subject: * 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 --- bin/ftpsync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/ftpsync') 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:-""} -- cgit v1.2.3