Skip to content

E mail Notifications

silversword411 edited this page Nov 2, 2017 · 1 revision

About

Duplicati can send email notifications after each operation. These can be either entered under the settings to apply to all Duplicati profiles, or under an individual profile under Option 5 | Advanced Options section.

Testing

Use the send-mail command to test this:

%MONO%"%APP_PATH%" send-mail --send-mail-to=<email-address>

Commandline options

--send-mail-to=<email-address>

Send an email to after a backup. Valid formats are "Name test@example.com, Other test2@example.com, test3@example.com". Multiple addresses must be separated with a comma.

--send-mail-from=<email-address>

This is the sender address of the email that is sent.

--send-mail-subject=<subject>

This is the subject line of the email that is sent. E.g. this can be "Duplicati %OPERATIONNAME% Report"

--send-mail-body=<body>

The content of the email message. This should contain "%RESULT%".

--send-mail-url=<smtp-url>

A URL to connect to an SMTP server to send out an email. Example: "tls://smtp.example.com:587", "smtps://smtp.example.com:465" or "smtp://smtp.example.com:25"

--send-mail-username=<username>

Required username to authenticate with SMTP server.

--send-mail-password=<password>

Required password to authenticate with SMTP server.

--send-mail-level=<level>

When email messages are sent: "Success", "Warning", "Error", "Fatal", "All" are possible.

--send-mail-any-operation=true

Also send emails after other operations like restore etc.

Allowed placeholders (variables) are:

%PARSEDRESULT%

The parsed result op the operation: Success, Warning, Error

%RESULT%

When used in the body, this is the result/log of the backup, When used in the subject line, this is the same as %PARSEDRESULT%

%OPERATIONNAME%

The name of the operation, usually "backup", but could also be "restore" etc.

%REMOTEURL%

The backend url

%LOCALPATH%

The path to the local folders involved (i.e. the folders being backed up)

%backup-name%

Backup Name of the profile

Extracted from: https://github.com/duplicati/duplicati/blob/5f6a4b7246092219530d75999cb13e350b0e485a/Duplicati/CommandLine/help.txt

You can’t perform that action at this time.