I have an rsync command refined to my needs that works perfectly at the prompt, but will not run properly in crontab. It seems to ignore all the --excludes..
here is the command
52 9 * * * root rsync -aAXvu --delete --log-file=/root/rsync.log /* root@10.40.36.143:/mnt/backups/backups/ns1.xxxxxx.ca --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} >/dev/null 2>&1
I thought it would be the { brackets, but it fails with single and double quotes as well.
Any ideas?