From 9923bfe01f86dd4fad817029aa59bece8527e1c3 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 23 Nov 2026 01:53:59 +0100 Subject: [PATCH] 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 --- conf/rcopy.conf.sample | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/conf/rcopy.conf.sample b/conf/rcopy.conf.sample index 5f6d30e..99b27ce 100644 --- a/conf/rcopy.conf.sample +++ b/conf/rcopy.conf.sample @@ -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 "