Duplicati
Custom Docker Images
Duplicati with mySql Client
Send Mail
#for testing
duplicati-cli send-mail --send-mail-password="pass" --send-mail-to="target@mail.lan" --send-mail-username="suer@mail.lan" --send-mail-url="smtp://serveraddress:25"
Global Settings
--send-mail-any-operation=true
--send-mail-body=%RESULT%
--send-mail-level=all
--send-mail-subject=Duplicati %OPERATIONNAME% report for -> %backup-name%
--send-mail-to=destination@mail.lan
--send-http-result-output-format=Duplicati
--send-mail-url=smtp://serveraddress:25
--send-mail-password=password
--send-mail-username=user@mail.lan
Scripts
Transfer To another system
- Copy docker compose and execute on another system
- Check volumes and service started succesfully
- Stop all compose services
- Change volume on duplicati service to user a temporary volume example (duclicati_tmpdata)
- Check if all volumes are writable on duplication service
- Start only the duplicati service (with temporary volume) on target system
- On source system Stop app services on docker compose except duplicati
- Execute a full backup ou source system
- On target system execute a manual restore to original destination
- Stop duplicati
- Change duplicati to use original volume
- And change volumes on duplicati to RO
- Start all services
- Check everything ok
Environment Variables
-
DUPLICATI__EVENTNAME
Eventname is BEFORE if invoked as --run-script-before, and AFTER if invoked as --run-script-after. This value cannot be changed by writing it back!
-
DUPLICATI__OPERATIONNAME
Operation name can be any of the operations that Duplicati supports. For example it can be "Backup", "Cleanup", "Restore", or "DeleteAllButN". This value cannot be changed by writing it back!
-
DUPLICATI__RESULTFILE
If invoked as --run-script-after this will contain the name of the file where result data is placed. This value cannot be changed by writing it back!
-
DUPLICATI__REMOTEURL
This is the remote url for the target backend. This value can be changed by echoing --remoteurl = "new value".
-
DUPLICATI__LOCALPATH
This is the path to the folders being backed up or restored. This variable is empty operations other than backup or restore. The local path can contain : to separate multiple folders. This value can be changed by echoing --localpath = "new value".
-
DUPLICATI__PARSED_RESULT
This is a value indicating how well the operation was performed. It can take the values: Unknown, Success, Warning, Error, Fatal.
Exit Codes
The following exit codes are supported:
- 0: OK, run operation
- 1: OK, don't run operation
- 2: Warning, run operation
- 3: Warning, don't run operation
- 4: Error, run operation
- 5: Error don't run operation
- other: Error don't run operation