do_rsync() {
local remote_host="$1"; shift
- local args="--server --sender -vltrze.iLsf --safe-links ."
+ local args="--server --sender -vlHtrze.iLsf --safe-links ."
if [ "$*" = "$args -new-/" ] || [ "$*" = "$args ./-new-/" ] ; then
local path="$BASEDIR/current-push"
info "serving $remote_host with $path"
echo "$0: Updating master copy of $component..."
rsync --delete \
-trz \
- --links --safe-links \
+ --links --hard-links --safe-links \
--link-dest="$tgt" \
"$src/." "$tmpdir_new/."
echo "$0: Done. Committing."
if [ -z "$SYNC_SOURCE" ]; then usage >&2; exit 1; fi
RSYNC="rsync"
-RSYNC_BASE_OPTIONS="-rtvz --delete --links --safe-links"
+RSYNC_BASE_OPTIONS="-rtvz --delete --links --hard-links --safe-links"
RSYNC_SSH_OPTIONS="ssh -o AddressFamily=inet -o BatchMode=yes"
LOGDIR="$HOME/logs"
if [ -e "$COMPONENTLIST" ]; then
for path in $(awk -v host="$(hostname -f)" '$2 == host {print $3}' $COMPONENTLIST); do
- allowed_rsyncs+=("--server --sender -ltrze.iLsf --safe-links . $path/.")
+ allowed_rsyncs+=("--server --sender -ltHrze.iLsf --safe-links . $path/.")
done
fi
for cmd_idx in ${!allowed_rsyncs[*]}; do
content => template('roles/static-mirroring/vhost/planet.debian.org.erb'),
}
- apache2::site { '10-static-vhosts-simple':
+ apache2::site { '010-static-vhosts-simple':
site => "static-vhosts-simple",
content => template('roles/static-mirroring/vhost/static-vhosts-simple.erb'),
}