Hi, I’m trying to set up a timelapse on my raspberry pi which syncs with google drive via rclone.
the camera.sh (taking photo) script works automatically (every 30 minutes) using crontab, but the clone.sh script,which should upload the photo to Gdrive, only works if I run it manually (not when crontab is running)
the crontab is a follows now…
*/30 * * * * sh /home/pi/Pictures/timelapse/camera.sh
*/30 * * * * sh /home/pi/Pictures/timelapse/clone.sh
what am I missing?
the clone.sh script is:
#!/bin/sh
/usr/local/bin/rclone -v sync /home/pi/Pictures/timelapse remote:RPi --max-age 10m --include *.jpg
I think for some reason there is no config file on the raspberry pi, the error it gives is that the command doesn’t find the rclone.config file (I just ran $ find / rclone.config through the whole RPi, nothing.)
Which doesn’t quite explain why the script works when commanded manually…