#790 Cron cannot start rsync job

v0.7x
open
nobody
5
2012-10-28
2010-07-20
WonkyPie
No

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?

Discussion