How to run rclone sync command using cron jobs

skydotint

New member
Joined
Mar 27, 2021
Messages
1
I have deep searched on DA forum also have been dig into the Google search. No luck indeed.

rclone sync /home/admin/admin_backups/xyz.php gdrive:nipun

The above code is working well through ssh (command line).
Now I would like to run this command using cron jobs under specific user.
Is it possible?
 
Yes, rclone can run at user level, you would need to configure it at that user level to create the particular rclone.conf file with the authentication token etc. Once it's completed, that user can use rclone and transfer files based on the backends he has configured and files he has access to.
 
Back
Top