summaryrefslogtreecommitdiffstats
path: root/packager/openslx.functions
diff options
context:
space:
mode:
Diffstat (limited to 'packager/openslx.functions')
-rw-r--r--packager/openslx.functions18
1 files changed, 15 insertions, 3 deletions
diff --git a/packager/openslx.functions b/packager/openslx.functions
index 138e5f39..89a2a672 100644
--- a/packager/openslx.functions
+++ b/packager/openslx.functions
@@ -277,16 +277,28 @@ clone_host() {
grep '^+' "$FILE" >> "$INCLUDE"
done
- # prepare rsync's options
+ # prepare rsync's general options
+ local RSYNC_OPTS="${DEFAULT_RSYNC_OPTS}"
+ [ -z "${RSYNC_OPTS}" ] && \
+ RSYNC_OPTS="
+ --acls \
+ --hard-links \
+ --xattrs \
+ --archive \
+ --delete \
+ --delete-excluded \
+ --numeric-ids
+ "
+ # prepare rsync's remote shell options
local RSYNC_RSH="$DEFAULT_RSYNC_RSH"
- [ -z "$RSYNC_RSH" ] && RSYNC_RSH="ssh -c arcfour -oStrictHostKeyChecking=no"
+ [ -z "${RSYNC_RSH}" ] && RSYNC_RSH="ssh -c blowfish -oStrictHostKeyChecking=no"
local RSYNC_SOURCE="root@$REMOTE_HOST:/"
# if something goes wrong during rsync, we need to recreate the .stage4 flag
add_cleanup touch ${RSYNC_TARGET}/.stage4
# run rsync with the exclude/include lists created earlier
cat "$INCLUDE" "$EXCLUDE" | \
- rsync $RSYNC_OPTS \
+ rsync ${RSYNC_OPTS} \
--exclude-from=- \
--rsh "${RSYNC_RSH}" \
"${RSYNC_SOURCE}" \