mirror: Change rsync option --delete-after to --delete-delay for better performance.

This commit is contained in:
Timo Makinen 2014-12-10 14:25:36 +02:00
parent b5b9688f7e
commit 5ae56bdf73

View file

@ -96,7 +96,7 @@ for mirror in ${SYNC} ; do
[ ${VERBOSE} -eq 1 ] && echo "Starting ${mirror} sync ..."
echo "`date '+%Y/%m/%d %H:%M:%S'` [$$] Starting ${mirror} sync ..." \
>> ${LOGFILE}
rsync -aH -4 ${EXTRA_OPTS} --numeric-ids --delete --delete-after \
rsync -aH -4 ${EXTRA_OPTS} --numeric-ids --delete --delete-delay \
--delay-updates --no-motd ${RSYNCOPTS} --log-file=${LOGFILE} \
--exclude=.~tmp~/ ${SRC} /srv/mirrors/${mirror}/
if [ $? -ne 0 ]; then