10-28-2024, 09:01 PM
(This post was last modified: 10-30-2024, 12:14 AM by Tim Curtis.
Edit Reason: mark solved
)
Hi everyone.
I've been using 8.3.9 on an RPi 2 for a while, and I'm loving it, beautiful interface, nice functionality.
I have one issue that I've found someone kid-of asked before https://moodeaudio.org/forum/showthread.php?tid=6312&highlight=cron.
I'm using rclone to sync my music to Google drive after I once broke the external USB drive it lives on and had to rip most of it again.
The shell script I use is /home/music/rclone/rclone-copy.sh and running that interactively as the logged-on user "music" works just fine:
and I've added the script in with crontab -e:
I also found that cron didn't seen to be started so I did "service start cron" and "service enable cron" and cron seems to be running:
but my automatic backup doesn't run. What am I missing here?
I've been using 8.3.9 on an RPi 2 for a while, and I'm loving it, beautiful interface, nice functionality.
I have one issue that I've found someone kid-of asked before https://moodeaudio.org/forum/showthread.php?tid=6312&highlight=cron.
I'm using rclone to sync my music to Google drive after I once broke the external USB drive it lives on and had to rip most of it again.
The shell script I use is /home/music/rclone/rclone-copy.sh and running that interactively as the logged-on user "music" works just fine:
Code:
music@music:~/rclone $ /home/music/rclone/rclone-copy.sh
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 7041 / 7041, 100%
Elapsed time: 36.8s
music@music:~/rclone $
and I've added the script in with crontab -e:
Code:
0 3 * * * /home/music/rclone/rclone-copy.sh > /dev/null
I also found that cron didn't seen to be started so I did "service start cron" and "service enable cron" and cron seems to be running:
Code:
music@music:~/rclone $ service cron status
● cron.service - Regular background program processing daemon
Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: >
Active: active (running) since Sun 2024-10-27 21:31:50 GMT; 23h ago
Docs: man:cron(8)
Main PID: 30121 (cron)
Tasks: 1 (limit: 2057)
CPU: 13.196s
CGroup: /system.slice/cron.service
└─30121 /usr/sbin/cron -f
Oct 28 20:35:01 music CRON[30809]: pam_unix(cron:session): session closed for u>
Oct 28 20:39:01 music CRON[31278]: pam_unix(cron:session): session opened for u>
Oct 28 20:39:01 music CRON[31279]: (root) CMD ( [ -x /usr/lib/php/sessionclean>
Oct 28 20:39:01 music CRON[31278]: pam_unix(cron:session): session closed for u>
Oct 28 20:45:01 music CRON[31981]: pam_unix(cron:session): session opened for u>
Oct 28 20:45:01 music CRON[31982]: (root) CMD (command -v debian-sa1 > /dev/nul>
Oct 28 20:45:01 music CRON[31981]: pam_unix(cron:session): session closed for u>
Oct 28 20:55:01 music CRON[767]: pam_unix(cron:session): session opened for use>
Oct 28 20:55:01 music CRON[768]: (root) CMD (command -v debian-sa1 > /dev/null >
Oct 28 20:55:01 music CRON[767]: pam_unix(cron:session): session closed for use>
lines 1-20/20 (END)
but my automatic backup doesn't run. What am I missing here?