Rsync jobs don't get executed

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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?

      1. System Logs -> Rsync jobs is empty everyday.
      2. 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.

      Source Code

      1. SHELL=/bin/sh
      2. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
      3. # m h dom mon dow user command
      4. 44 */1 * * * root /var/lib/openmediavault/cron.d/rsync-9892ee06-90c0-4ad7-8adb-54faef4007c9 >/dev/null 2>&1
      5. 15 */0 * * * root /var/lib/openmediavault/cron.d/rsync-b79e0101-228e-4390-88f1-4e96db22391e >/dev/null 2>&1
      6. 40 */0 * * * root /var/lib/openmediavault/cron.d/rsync-6c06e21a-40fc-45e4-9b06-a4d3ff8d0bd9 >/dev/null 2>&1
      7. 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? ?(
    • gderf wrote:

      >/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?

      The post was edited 1 time, last by horace: Updated status ().