chrisandClaude Opus 5.5 9923bfe01f 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>
2026-11-23 01:53:59 +01:00
2025-05-24 23:44:41 +02:00
2025-02-13 11:59:34 +01:00

# - Convert host files and rcopy.conf file created on 
# - rcopy SVN versions eralier than revision 50
# -
cd /root/crontab/rcopy
sed -i '/^default_config_file=/d' hosts/*.sh
sed -i '/^rcopy_functions_file=/d' hosts/*.sh
perl -i -n -p -e "s#\.\s+\\\$default_config_file.*#. \\\$rcopy_conf_file#" hosts/*.sh
perl -i -n -p -e "s#^crontab_base_dir=.*#crontab_base_dir=\\\$rcopy_base_dir#" conf/rcopy.conf
S
Description
No description provided
Readme
318 KiB
0 Stars 1 Watchers 0 Forks
Languages
Shell 100%