Update mirrorsync.sh

Added quotes to --exclude parameter
This commit is contained in:
Dennis Körner 2021-06-03 12:27:41 +02:00 committed by GitHub
parent f80797de04
commit cddbf9fc58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@
rsync="/usr/bin/rsync"
# You can change v to q if you do not want detailed logging
opts=(-vrlptDSH --exclude=*.~tmp~ --delete-delay --delay-updates)
opts=(-vrlptDSH --exclude="*.~tmp~" --delete-delay --delay-updates)
# Please use a mirror next to you for initial sync
# or if you are hosting a private rather than a pulic mirror.
@ -82,3 +82,4 @@ ${rsync} "${opts[@]}" "${src}/" "${dst}/" >> "$logfile" 2>&1
logger -t rsync "Finished updating ${mirrormodule}"
printf "End: %(%c)T\n" -1 >> "$logfile" 2>&1
rm -f $lockfile