mirror: Exclude ".~tmp~" directory from sync to prevent errors if upstream is running sync at same time with --delay-updates option.
This commit is contained in:
parent
6980e8275b
commit
ec36d59ef9
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ for mirror in ${SYNC} ; do
|
||||||
>> ${LOGFILE}
|
>> ${LOGFILE}
|
||||||
rsync -aH -4 ${EXTRA_OPTS} --numeric-ids --delete --delete-after \
|
rsync -aH -4 ${EXTRA_OPTS} --numeric-ids --delete --delete-after \
|
||||||
--delay-updates --no-motd ${RSYNCOPTS} --log-file=${LOGFILE} \
|
--delay-updates --no-motd ${RSYNCOPTS} --log-file=${LOGFILE} \
|
||||||
${SRC} /srv/mirrors/${mirror}/
|
--exclude=.~tmp~/ ${SRC} /srv/mirrors/${mirror}/
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "WARN: Encountered errors on ${mirror} sync, see ${LOGFILE} for details" 1>&2
|
echo "WARN: Encountered errors on ${mirror} sync, see ${LOGFILE} for details" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue