Will not work with crontab

Rclone do not work with crontab. I am running Raspbian on a Raspbery Pi.
I want to upload a specific folder every day at 5 am.
This is the job:

10 5 * * * reclone copy /home/user/subfolder my-remote:/folder/bla

Please help me.

Create a script with all your rclone tasks, make it executable, and a it to crontab. It has worked for me everytime.

I did that with a simply bash script but it didnĀ“t work.

are you sure you made it executable?

Yes I am sure.

-rwxr-x--x 1 dominic dominic 88 Jan 1 16:27 backup.sh

Bash Script:

#!/bin/bash
rclone copy /home/user/subfolder my-remote:/folder/

crontab:
10 5 * * * bash /home/dominic/backup.sh

Put the full path to the rclone executable and try that.

or from your crontab, do a bash -c <path_to_script_file>

Thanks that works ! :slight_smile: