Quote:
Originally Posted by harrollld
hello
as root, I add a such line in crontab :
*/5 * * * * echo "aa" >> /tmp/aaa
obviously, it works.
now I just replace the echo.... part with the following one :
*/4 * * * * /usr/local/bin/rclone sync -P --no-check-certificate -P --exclude ".*/**" /home/test/abc/ remote:/abc/
(".*/**" allows to take files and subdir into the dir, without the .hidden files/folders)
it doesnt works, rclone doesnt launches. If I do exactly that command just in term, by copy/paste, it works. Only under crontab, it doesnt..
how could I solve this?
|
finally found why :
had to put brackets to remote:"path"
but mainly to precise conf file, whom is different wih default rclone launched dircetly, instead of rclone launched through crontab schedule :
2022/05/29 00:16:01 NOTICE: Config file "/var/log/.config/rclone/rclone.conf" not found - using defaults
had to precise conf file wih --config /root/.config/rclone/rclone.conf (path with rclone dircetly without crontab)