diff options
author | Simon Paillard <spaillard@debian.org> | 2009-11-04 01:13:35 +0100 |
---|---|---|
committer | Simon Paillard <spaillard@debian.org> | 2009-11-04 01:13:35 +0100 |
commit | 1b9688dbba140cb4722ac34273eba0dc99ad79ce (patch) | |
tree | 4fb869539b7a7e10b4cae7a2910d2e344b446273 /bin/websync | |
parent | e9e25bee119210c761df07021a43ff1a6e0a9c0a (diff) |
Filter protect sponsor-specific files instead of exluding them (which
delete them cause of --delete-excluded)
Diffstat (limited to 'bin/websync')
-rwxr-xr-x | bin/websync | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/websync b/bin/websync index ba5ee5e..cc3ca8c 100755 --- a/bin/websync +++ b/bin/websync @@ -175,7 +175,7 @@ EXCLUDE=${EXCLUDE:-"--exclude ${HOSTNAME}"} EXCLUDE="${EXCLUDE} --exclude .~tmp~/" # And site specific excludes, by default its the sponsor stuff that should be local to all -SITE_EXCLUDE=${SITE_EXCLUDE:-"--exclude core --exclude sponsor_img.jpg --exclude sponsor.html"} +SITE_FILTER=${SITE_FILTER:-"--filter=protect_sponsor_img.jpg --filter=protect_sponsor.html"} # Hooks HOOK1=${HOOK1:-""} @@ -249,10 +249,10 @@ while [ -e "${UPDATEREQUIRED}" ]; do log "Running mirrorsync, update is required, ${UPDATEREQUIRED} exists" rm -f "${UPDATEREQUIRED}" - log "Syncing: ${RSYNC} ${RSYNC_OPTIONS} ${RSYNC_OPTIONS2} ${EXCLUDE} ${SITE_EXCLUDE} ${RSYNCPTH}::${RSYNC_PATH} ${TO}" + log "Syncing: ${RSYNC} ${RSYNC_OPTIONS} ${RSYNC_OPTIONS2} ${EXCLUDE} ${SITE_FILTER} ${RSYNCPTH}::${RSYNC_PATH} ${TO}" set +e - ${RSYNC} ${RSYNC_OPTIONS} ${RSYNC_OPTIONS2} ${EXCLUDE} ${SITE_EXCLUDE} \ + ${RSYNC} ${RSYNC_OPTIONS} ${RSYNC_OPTIONS2} ${EXCLUDE} ${SITE_FILTER} \ ${RSYNCPTH}::${RSYNC_PATH} "${TO}" >"${LOGDIR}/rsync-${NAME}.log" 2>"${LOGDIR}/rsync-${NAME}.error" result=$? set -e |