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:
1 parent
6e19991105
commit
9923bfe01f
1 file changed
+8
-8
@@ -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]*
|
||||
## -
|
||||
rsync_progArgs="
|
||||
--exclude **/dev/*random
|
||||
--exclude *.gvfs
|
||||
--exclude *.log
|
||||
--exclude *.log.[0-9]
|
||||
--exclude *.log.[0-9].gz
|
||||
--exclude *.log.[0-9][0-9].gz
|
||||
--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=**/dev/*random
|
||||
--exclude=*.gvfs
|
||||
--exclude=*.log
|
||||
--exclude=*.log.[0-9]
|
||||
--exclude=*.log.[0-9].gz
|
||||
--exclude=*.log.[0-9][0-9].gz
|
||||
--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]*
|
||||
--delete-excluded
|
||||
"
|
||||
|
||||
|
||||
Reference in new issue
Block a user