I know it's not an rclone problem, but I know several of us use Cron to automate our rclone jobs.
There's one particular job that just will not run from cron, even though it runs perfectly when executed manually.
My Cron Job:
30 * * * * /opt/rclone/scripts/gvault-move.sh
#!/usr/bin/bash if pidof -o %PPID -x "gvault-move.sh"; then echo $(date "+%Y/%m/%d %H:%M:%S")" WARN : Cron attempted to start the move the local data mirror to vault: but the process is already running." >> /opt/rclone/logs/vault-upload.log exit 1 fi echo $(date "+%Y/%m/%d %H:%M:%S")" INFO : Cron started the rclone move subroutine" >> /opt/rclone/logs/vault-upload.log # Move older local files to the cloud rclone move \ /srv/dev-disk-by-label-Buffer/mirror/ vault: \ --log-level INFO \ --log-file /opt/rclone/logs/vault-upload.log \ --stats 0 \ --exclude-from /opt/rclone/exclude/gvault \ --drive-chunk-size 64M \ --delete-empty-src-dirs \ --user-agent gvaultapp \ --fast-list
And I've made the script executable with
chmod +x /opt/rclone/scripts/gvault-move.sh
When I expect the script to run from cron, I get no output in the logs. Can anyone help me figure out why it wont run? Other scripts in the cronjob run just fine.