Skip to content

How to setup Duplicati (with Docker)

Ready to use

Description

Duplicati is a free, open-source backup client that securely stores encrypted, incremental, and compressed backups on cloud storage services and remote file servers

Folders

Create the folder structure.

cd ~/services
mkdir -p duplicati/{config,data}

Docker

  1. Add the duplicati section to your docker-compose.yml file:

      duplicati:
        image: duplicati/duplicati
        container_name: duplicati
        ports:
          - "8200:8200"  # Web UI
        environment:
          - DUPLICATI__WEBSERVICE_PASSWORD=password # replace this with a strong password (see below)
          - SETTINGS_ENCRYPTION_KEY=password # replace this with a strong password (see below)
        volumes:
          - /home/dan/Downloads/bkp_test/sources:/source # replace this with the path to the sources you want to backup
          - /home/dan/Downloads/bkp_test/dests:/backup #replace this with the path to the location where you want to store your backups
          - ./duplicati/config:/config
          - ./duplicati/data:/data # this is important! without this, your backup jobs will be gone after a docker compose down
        restart: unless-stopped
    

    You can generate strong passwords with:

    openssl rand -hex 24
    
  2. Download and start duplicati:

    docker compose up -d duplicati
    

    Try it out

See if you can access http://your_server_IP:8200.

Troubleshooting

If it doesn't work, see the troubleshooting guide.

Configuration

Creating backups

From the web interface's main page, click on Add Backup and follow the step-by-step instruction.

Restoring backups

From the web interface's main page, click on Restore and follow the step-by-step instruction.

Official site

Github page

https://docs.linuxserver.io/images/docker-duplicati/

https://hub.docker.com/r/linuxserver/duplicati/

https://docs.duplicati.com/detailed-descriptions/using-duplicati-from-docker