Rsync send no Mail

  • Hello,

    I have created an Rsync task that runs every day at 12:00 AM. The checkbox for "Send command output via email" is enabled, while the checkbox for "Suppress non-error messages" is not enabled. However, I do not receive any emails, even when changes occur.

    Under [System] > [Notifications] > [Settings], I have configured everything correctly and also receive a test email.

    I have not enabled any other checkboxes except "Send command output via email".

    Under Advanced Options, I have entered the following:

    -acbvhSHAX --backup-dir=".change/`date +%F_%H-%M-%S`/" --delete --exclude=.change --exclude=DATA --exclude=lost+found --exclude=quarantäne --exclude=aquota.group --exclude=aquota.user


    Explanation of the options:

    • -a Archive mode (-rlptgoD, without -A,-X,-U,-N,-H)
    • -c Skip based on checksum, not modification time & size
    • -b Create backups (see --suffix & --backup-dir)
    • -v Increase verbosity
    • -h Output numbers in a human-readable format
    • -S Convert sequences of null bytes into sparse blocks
    • -H Preserve hard links
    • -A Preserve ACLs (implies --perms)
    • -X Preserve extended attributes

    I don’t assume that any of these options suppress the output.

    I also noticed that the "manual page" link no longer works.

    For beginners like me, it would be helpful if the checkboxes included a description of which option is enabled, e.g., "Archive mode (--archive, -a)". This way, one could look it up in the Rsync manual to determine whether the option is useful or not.

    Thank you!






    Hallo,

    ich habe eine Rsync-Aufgabe erstellt, die jeden Tag um 00:00 Uhr läuft. Die Checkbox bei "Sende Kommandoausgabe per E-Mail" ist gesetzt, die Checkbox bei "Unterdrücke Nicht-Fehlermeldungen" ist nicht gesetzt. Ich erhalte aber keine E-Mail, selbst wenn es eine Änderung gab.

    Unter [System] > [Benachrichtigungen] > [Einstellungen] habe ich alles korrekt eingetragen und erhalte auch eine Testmail.

    Ich habe keine weitere Checkbox aktiviert, außer "Sende Kommandoausgabe per E-Mail".

    Unter Erweiterte Optionen habe ich Folgendes eingetragen:

    -acbvhSHAX --backup-dir=".change/`date +%F_%H-%M-%S`/" --delete --exclude=.change --exclude=DATA --exclude=lost+found --exclude=quarantäne --exclude=aquota.group --exclude=aquota.user

    Bedeutung der Optionen:

    • -a Archive-Modus (-rlptgoD, ohne -A,-X,-U,-N,-H)
    • -c Prüft Änderungen anhand der Prüfsumme statt Modifikationszeit & Größe
    • -b Erstellt Backups (siehe --suffix & --backup-dir)
    • -v Erhöht die Ausführlichkeit der Ausgabe
    • -h Gibt Zahlen in menschenlesbarem Format aus
    • -S Wandelt Folgen von Nullbytes in Sparse-Blöcke um
    • -H Erhält Hardlinks
    • -A Erhält ACLs (setzt --perms voraus)
    • -X Erhält erweiterte Attribute

    Ich gehe nicht davon aus, dass eine dieser Optionen die Ausgabe unterdrückt.

    Außerdem ist mir aufgefallen, dass der Link "Hilfeseiten" nicht mehr funktioniert.

    Für Anfänger wie mich wäre es hilfreich, wenn bei den Checkboxen angegeben wäre, welche Option aktiviert wird, z. B. "Archivmodus (--archive, -a)". Dann könnte man im Rsync-Handbuch nachschlagen, ob diese Option für einen nützlich ist oder nicht.

    Vielen Dank!

  • chente

    Approved the thread.
  • These are the things I have noticed so far:

    Creating a new task with the option "Send command output via email" sends an email with the changes.

    Under "/etc/cron.d/", I found the tasks for rsync. In both the newly created task and the task that does not send an email, the following line appears at the end:

    | mail -E -s "Cron" -a "From: Cron Daemon <root>" root >/dev/null 2>&1

    So this should not be an issue.


    Are there any other files I can check?


    I also checked whether a duplicate rsync option (Checkboxes – Advanced Options) caused the error.

    This was not the case.

    I have enabled all options (except "Dry Run" and "Suppress non-error messages") and added the following under "Advanced Options".

    I found the options in:

    /var/lib/openmediavault/cron.d/


    Checkboxes

    (--verbose always active)

    • --archive
    • --acls
    • --xattrs

    Advanced Options:

    -avAX


    Where else could I look?


    Thank you!

  • Hello, I have solved the problem.

    After disabling the option "Send command output via email" and saving the task, then re-enabling the option and saving again, emails were sent successfully.


    Thank you!

  • rollbrett

    Added the Label resolved
  • You are not alone. Same problem.


    system > notification > settings.

    enabled and email account setup. It works.


    system > notification > events

    All enabled.


    services > rsync > tasks

    enabled a job setup to rsync everything on my data drive to my backup drive. Set to run at 2am daily.


    Send command output via email is enabled. But I note "an email message with the command output (if any produced) is sent to the administrator". I assume administrator is root?


    The rsync task works, or at least the first time as the contents of the backup drive look the same as the data drive.


    But no notifications. What I am getting is hourly spam from the cron daemon that timeshift is set up.


    Mounted '/dev/sdb1' at '/run/timeshift/1865151/backup'

    Weekly snapshots are enabled

    Last weekly snapshot is 1 days old

    Monthly snapshots are enabled

    Last monthly snapshot is 1 days old


    I know, I don't need this. How do I turn those notifications off?


    And how do I get an email notification that my rsync job has run?


    I'll try what worked for you, see if it works.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!