mirror: Change rsync option --delete-after to --delete-delay for better performance.
This commit is contained in:
parent
b5b9688f7e
commit
5ae56bdf73
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ for mirror in ${SYNC} ; do
|
||||||
[ ${VERBOSE} -eq 1 ] && echo "Starting ${mirror} sync ..."
|
[ ${VERBOSE} -eq 1 ] && echo "Starting ${mirror} sync ..."
|
||||||
echo "`date '+%Y/%m/%d %H:%M:%S'` [$$] Starting ${mirror} sync ..." \
|
echo "`date '+%Y/%m/%d %H:%M:%S'` [$$] Starting ${mirror} sync ..." \
|
||||||
>> ${LOGFILE}
|
>> ${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} \
|
--delay-updates --no-motd ${RSYNCOPTS} --log-file=${LOGFILE} \
|
||||||
--exclude=.~tmp~/ ${SRC} /srv/mirrors/${mirror}/
|
--exclude=.~tmp~/ ${SRC} /srv/mirrors/${mirror}/
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue