Email template on linux?

Version of duplicati:2.2.0.1_stable_2025-11-09

I have finally gotten my Duplicati working for backing up my NAS to a remote NAS (running s3 storage).

Now I want to take the next step and get good email reporting running.

So on my domain I made a mail account for the duplicati’s to use.

If I just enter %RESULT% in send-mail-body I get a report, it’s messy and you really have to look to find the result.

So I want to make a custom template for it.

I tried entering it directly in the field, but it didn’t understand \n as newline, instead I got this:
Backup-rapport for job: {Backup.Name}\n\nStarttidspunkt: {Backup.Time.Start}\nSluttidspunkt: {Backup.Time.End}\nResultat: {Backup.Result}\n\n------------------------------------------------------------\n\nOversigt:\n- Filer undersøgt: {Backup.FilesExamined}\n- Filer tilføjet: {Backup.FilesAdded}\n- Filer ændret: {Backup.FilesModified}\n- Filer slettet: {Backup.FilesDeleted}\n\n- Datalager størrelse: {Backup.SizeOfBackup}\n- Overført data: {Backup.SizeOfUploadedFiles}\n- Komprimeringsratio: {Backup.CompressionRatio}\n\n------------------------------------------------------------\n\nEventuelle fejl:\n{Backup.Errors}\n\nEventuelle advarsler:\n{Backup.Warnings}\n\n------------------------------------------------------------\n\nDetaljer:\n{Backup.Messages}

There are two problems, no newline, and the variables aren’t replaced.
So I tried moving it to an external file, and reference that in the field, now I get the email template out, but the variables are still not replaced:

Backup-rapport for job: {Backup.Name}

Starttidspunkt: {Backup.Time.Start}
Sluttidspunkt: {Backup.Time.End}
Resultat: {Backup.Result}


Oversigt:

  • Filer undersøgt: {Backup.FilesExamined}

  • Filer tilføjet: {Backup.FilesAdded}

  • Filer ændret: {Backup.FilesModified}

  • Filer slettet: {Backup.FilesDeleted}

  • Datalager størrelse: {Backup.SizeOfBackup}

  • Overført data: {Backup.SizeOfUploadedFiles}

  • Komprimeringsratio: {Backup.CompressionRatio}


Eventuelle fejl:
{Backup.Errors}

Eventuelle advarsler:
{Backup.Warnings}


Detaljer:

This is a template made with chatgpt, I have no idea if the variables are correct, I don’t see them in the documentation, it only has a very few variables shown.

DupReport may be what your looking for.

Collects dupliciti emails and and puts them into status reports.

GitHub - HandyGuySoftware/dupReport: Email summary reporting tool for use with Duplicati backup system

Hi @dcurrey

That looks very nice, it’s just what I wanted. Gives a good overview.

Thankyou, I’ve set it up,and though it’s rather strict with the subject line,ie the job name, I got it working, and it reports nicely now.