Posts by blibso

    Hi vpeter!

    Thanks for the response!

    Unfortunately, I just tried it without the 'root', so with the following line:

    20 13 * * * rsync -avzP /var/media/Volume/test /var/media/Backup

    Still doesn't work :(

    (while the rsync command works if I test it directly in the shell)

    Also, does anybody have an idea regarding the crontab log output?

    Hi there!

    tl;dr: trying to schedule rsync job using crontab via SSH, but doesn't work - system specs at the end.

    GOAL

    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!

    PROBLEM

    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)

    QUESTIONS

    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?

    SYSTEM

    Raspberry Pi 4 b
    LibreELEC 9.1.502
    Kodi 18.4

    Thanks!

    blibso