rcopy.conf.sample: use '--exclude=PATTERN' to prevent shell glob expansion.

Unquoted expansion of $progArgs let the shell expand patterns like
'*.log' against the current working directory (e.g. /root for the
cronjob). Matching files became extra rsync source arguments, which
broke backups of remote hosts with 'Unexpected remote arg'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrisandClaude Opus 5.5 committed 2026-11-23 01:53:59 +01:00
1 parent 6e19991105
commit 9923bfe01f
1 file changed
+8 -8
+8 -8
View File
@@ -176,14 +176,14 @@ info_file="/tmp/LAST_BACKUP_archiv.info"
## - **/*.[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]* ## - **/*.[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]*
## - ## -
rsync_progArgs=" rsync_progArgs="
--exclude **/dev/*random --exclude=**/dev/*random
--exclude *.gvfs --exclude=*.gvfs
--exclude *.log --exclude=*.log
--exclude *.log.[0-9] --exclude=*.log.[0-9]
--exclude *.log.[0-9].gz --exclude=*.log.[0-9].gz
--exclude *.log.[0-9][0-9].gz --exclude=*.log.[0-9][0-9].gz
--exclude **/sessions/* --exclude=**/sessions/*
--exclude **/*.[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]* --exclude=**/*.[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]*
--delete-excluded --delete-excluded
" "