Rclone remote syncing works with cron but not with anacron


I have set up local folder sync using rclone to remote servers.

First, I was automating the sync using the cron and the automated sync to server was working fine.
But, as cron doesn't take care of a missed scheduled job I wanted to use anacron for that.

With anacron, rclone is not syncing to the remote server. However, anacron is syncing to the local folder.

Please assist how to make anacron (not cron) function the rclone syncing to remote server.

Capture a log with --log-file and take a look in that as the first step.

It seems that with ancron, rclone is seeking the config file in the /root/ which is not its location.

NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults

That means it is running as root rather than a regular user.

Gave the config file location to the rclone command and it worked.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.