I am trying to setup a cron job for rclone to sync files to Google Drive. I can run the script manually and it works (doesn’t ask for password or anything either). Here is my code:
if pidof -o %PPID -x “rclone-plex-upload.sh”; then
rclone sync /mnt/md0/plex/movies GoogleDriveCrypt:/ -v --min-age 15m --log-file=/var/log/rclone/rclone-plex-upload.log
*/5 * * * * /usr/local/bin/rclone-plex-upload.sh
Can anyone explain why when I run the script manually it works, but the cron job doesn’t work?
Thanks in advance.
Edit: Fixed it. Moved the script to it to my user in /home and ran it from there.