Rsync jobs don't get executed

  • Hello everyone,


    I've setup 4 rsync jobs to pull data from Linux containers at intervals of approximately once a day. My paranoia is high here because I suspect that the jobs never ran.


    How can you tell?


    • System Logs -> Rsync jobs is empty everyday.
    • No indication in /var/log/syslog or /var/log/daemon.log that cron ever executed the jobs.

    I see jobs in the /etc/cron.d/openmediavault-rsync file and do run fine when I run them manually which I hope I can avoid doing.


    Code
    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    # m h dom mon dow user    command
    44 */1 * * * root /var/lib/openmediavault/cron.d/rsync-9892ee06-90c0-4ad7-8adb-54faef4007c9 >/dev/null 2>&1
    15 */0 * * * root /var/lib/openmediavault/cron.d/rsync-b79e0101-228e-4390-88f1-4e96db22391e >/dev/null 2>&1
    40 */0 * * * root /var/lib/openmediavault/cron.d/rsync-6c06e21a-40fc-45e4-9b06-a4d3ff8d0bd9 >/dev/null 2>&1
    22 */1 * * * root /var/lib/openmediavault/cron.d/rsync-74b1def2-0fc0-43c1-a12d-496a0e0c5f7a >/dev/null 2>&1


    I must be missing something here significant? Even these fail t execute for some reason, shouldn't there be a log? ?(

  • >/dev/null 2>&1 makes the command run silently. Remove it temporarily and then look in the logs including /var/log/cron

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

    2 Mal editiert, zuletzt von gderf ()

  • >/dev/null 2>&1 makes the command run silently. Remove it temporarily and then look in the logs including /var/log/cron

    Good point, I'll check the logs on the next scheduled run and post back.


    EDIT: Now I'm seeing logs and appears the job ran fine. Is this intended behavior to silence Rsync job output?

    Einmal editiert, zuletzt von horace () aus folgendem Grund: Updated status

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!