summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ftpsync3
-rw-r--r--etc/ftpsync.conf.sample6
2 files changed, 9 insertions, 0 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 9cdc160..3eef748 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -247,6 +247,8 @@ RSYNC_USER=${RSYNC_USER:-""}
# the password
RSYNC_PASSWORD=${RSYNC_PASSWORD:-""}
+# a possible proxy
+RSYNC_PROXY=${RSYNC_PROXY:-""}
# Do we sync stage1?
SYNCSTAGE1=${SYNCSTAGE1:-"false"}
@@ -355,6 +357,7 @@ fi
# Now do the actual mirroring, and run as long as we have an updaterequired file.
export RSYNC_PASSWORD
+export RSYNC_PROXY
while [ -e "${UPDATEREQUIRED}" ]; do
log "Running mirrorsync, update is required, ${UPDATEREQUIRED} exists"
diff --git a/etc/ftpsync.conf.sample b/etc/ftpsync.conf.sample
index f49a209..f2b7dd5 100644
--- a/etc/ftpsync.conf.sample
+++ b/etc/ftpsync.conf.sample
@@ -90,6 +90,12 @@
## If we need a user we also need a password
#RSYNC_PASSWORD=
+# You may establish the connection via a web proxy by setting the environment
+# variable RSYNC_PROXY to a hostname:port pair pointing to your web proxy. Note
+# that your web proxy's configuration must support proxy connections to port 873.
+# RSYNC_PROXY=
+
+
## The following three options are used in case we want to "callback" the host
## we got pushed from.
#CALLBACKUSER="archvsync"