Rsync task do run manually, but not automatically
Rsync task is set with stuff added in Extra options field in GUI:
So it will generate logfile with date added to filename every time it runs.
Everything runs perfect if I select task from GUI and run it via Run Now button, but when the task run automatically (every 6hrs), task fails with following error sent as email.
Cron <root@AtomicStorage> PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /usr/bin/lockf -s -t 0 -k "/mnt/MasterZFSv2/StorageAFP" /usr/local/bin/rsync -r -t -p --delete-delay --delay-updates --log-file=/skripte/log/rSync/logrsync.log.`date +
Syntax error: EOF in backquote substitution
Syntax error: Error in command substitution
Seems like that I am hitting max character count for cron command or something similar.
#4 Updated by Suraj Ravichandran over 5 years ago
- Status changed from Screened to Resolved
- % Done changed from 90 to 100
Edit (spellcheck): Unfortunately my testing revealed that there is no easy and more importantly clean way to do this via the code and you will have to escape these characters yourself in the form field.
So to solve your problem:
and it will work.