Mail report without warnings sent with log-level=Warning

Duplicati sends me a success email report after each backup despite of having the log level set to “Warning”. I expect no emails if no warnings detected.

No warnings in a report email or backup log (warning and error count is zero).

No extra things configured at backup level, only following global settings:

--send-mail-log-level=Warning
--send-mail-to=REDACTED
--log-file=/data/backups/duplicati-db/custom.log
--send-mail-url=smtp://localhost:25/?starttls=never
--send-mail-username=root

Example of an email report with subject “Duplicati Backup report for foo”:

DeletedFiles: 0
DeletedFolders: 0
ModifiedFiles: 12
ExaminedFiles: 60877
OpenedFiles: 13
AddedFiles: 1
SizeOfModifiedFiles: 15739236
SizeOfAddedFiles: 6148
SizeOfExaminedFiles: 89369910815
SizeOfOpenedFiles: 42365127
NotProcessedFiles: 0
AddedFolders: 0
TooLargeFiles: 0
FilesWithError: 0
ModifiedFolders: 0
ModifiedSymlinks: 0
AddedSymlinks: 0
DeletedSymlinks: 0
PartialBackup: False
Dryrun: False
MainOperation: Backup
ParsedResult: Success
Version: 2.0.6.3 (2.0.6.3_beta_2021-06-17)
EndTime: 11/4/2021 3:13:40 AM (1635984820)
BeginTime: 11/4/2021 3:00:00 AM (1635984000)
Duration: 00:13:40.2651280
MessagesActualLength: 41
WarningsActualLength: 0
ErrorsActualLength: 0
LimitedMessages: [
   2021-11-04 03:00:04 +03 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation Backup has started,
   2021-11-04 03:00:31 +03 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started:  (),
   2021-11-04 03:00:43 +03 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed:  (3.05 KB),
   2021-11-04 03:09:40 +03 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-REDACTED.dblock.zip.aes (135.86 KB),
   2021-11-04 03:09:54 +03 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-REDACTED.dblock.zip.aes (135.86 KB),
   2021-11-04 03:09:55 +03 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-REDACTED.dindex.zip.aes (6.61 KB),
   2021-11-04 03:09:57 +03 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-REDACTED.dindex.zip.aes (6.61 KB),
   2021-11-04 03:09:58 +03 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-20211104T000005Z.dlist.zip.aes (5.41 MB),
   2021-11-04 03:10:13 +03 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-20211104T000005Z.dlist.zip.aes (5.41 MB),
   2021-11-04 03:10:13 +03 - [Information-Duplicati.Library.Main.Operation.DeleteHandler-DeleteRemoteFileset]: Deleting 1 remote fileset(s) ...,
...
]
LimitedWarnings: []
LimitedErrors: []

App version 2.0.6.3_beta_2021-06-17, Linux, backing up local directory to B2.

Hello and welcome!

This is for the log level… to control when an email is sent, you want to use this:

--send-mail-level=Warning,Error,Fatal

1 Like

Thank you, I overlooked this option. Now reports work as expected, problem solved.