I’m using Duplicati on some Ubuntu systems (servers/workstations). Mainly on the workstation it crashes sometimes. To be sure it is running I integrated it into “monit” (simple monitoring solution for linux).
This is the configuration for monit:
check process DuplicatiServer matching "DuplicatiServer" group backup start program = "/usr/sbin/service duplicati start" stop program = "/usr/sbin/service duplicati stop"
It simply checks if DuplicatiServer is in the process list and if not it tries to start DuplicatiServer again.
Secondly I set up monit to also check for duplicati warnings/errors. Whenever a warning/error occurs it will send the log by mail.
Settings in duplicati:
log-file = /var/log/duplicati.log log-level = Warning
Configuration for monit:
check file duplicati_log with path /var/log/duplicati.log if changed timestamp then exec "/bin/bash -c 'tail -n50 /var/log/duplicati.log | mail -s "Duplicati Log" email@example.com'"
Maybe it is useful for someone. Maybe someone has better solution or hints.