I use Duplicati generally, to backup my VMs to a personal off-site cloud but HA doesn’t yet have an add-on for this. So with the help of the very full docs at Developing an add-on I had a go at a local add-on. It wasn’t too scary and seems to work well. Here are the config files I used.
Critical points seem to be
- Use init: false to bypass the default Docker system init.
- Use host_network: true to expose port 8200 on the HA VM (taking care who can see it).
The first time you run the add-on it builds the duplicati image but afetrwards starts up quickly. I’m finding my way gradually with advanced HA config so any insightful comments are most welcome.
name: Duplicati version: "1.1.1" slug: duplicati description: >- This is a local add-on which uses the Docker Hub duplicati image to carry out offsite backups of HA configs. arch: - amd64 url: "https://hub.docker.com/r/linuxserver/duplicati" ports: 8200/tcp: 8200 host_network: true init: false map: - config:rw environment: PUID: "0" GUID: "0" TZ: "Europe/London"
ARG BUILD_FROM FROM $BUILD_FROM
build_from: amd64: "lscr.io/linuxserver/duplicati:latest"