Cron cannot start rsync job
This project has moved to github - see https://github.com/freenas
Brought to you by:
cochard,
mattolander
I couldn't set an rsync script as a cronjob, because rsync is located at
/usr/local/bin/rsync
Problem: The PATH line in the @crontab includes only
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
changing the crontab manually is pointless since it is overwritten with the data from the config.xml on restart.
My workaround:
set a link to a directory supported by cron.
ln -s /usr/local/bin/rsync /usr/bin/rsync
This has to be added in the Advanced Settings - Command script section to restore the link on reboot.
Maybe there is a way to add the default rsync path in the cron section of the config.xml?