tl;dr: trying to schedule rsync job using crontab via SSH, but doesn't work - system specs at the end.
As I've already stated here, I try to get LibreELEC to do automatic backups from one of my connected hard drives to another. The final goal is to synchronize a specific folder on hard drive A with a specific folder on hard drive B (both connected via USB) once a week.
In the linked thread I've been suggested to schedule a cron job that calls rsync periodically.
Here's what I've done so far:
- connected to LibreELEC via SSH - works!
- tested rsync by issuing the following command directly in shell: rsync -avzP /var/media/Volume/Music /var/media/Backup/Music - works!
- tried to set up cron job by adding a file to /etc/cron.d - does not work, because 'read-only file system'
- tested crontab -e by adding 25 16 * * * reboot - works!
No here's the problem. The solution to my problem would obviously be to run 'crontab -e' and add i.e.
25 16 * * * root rsync -avzP /var/media/Volume/Music /var/media/Backup/Music
(of course that does not run the command weekly but daily, but that's what I've tested to see if it works immediately)
That command does not do anything though. Do I have and error in the command or what's the problem?
Also, is there any kind of log or error output by the active cron jobs I can access for debugging? I've read that I can add a line saying 'MAILTO:root' to the crontab to send the command output to the root user's mail folder, but where do I even find that?
Raspberry Pi 4 b