How to Install Duplicati on Ubuntu 24.04
Duplicati is an open-source backup solution that allows you to create secure, encrypted, and automated backups to local storage or a wide variety of cloud services.
It provides a simple web interface for managing backup jobs while keeping your data encrypted and deduplicated to save bandwidth and space.
Running Duplicati inside a Docker container gives you a lightweight, isolated environment that is easy to maintain and update.
The steps below show how to install Duplicati on Ubuntu 24.04 using Docker.
Install Docker
Duplicati will run as a Docker container, so you first need Docker installed on your system.
Update your package list and install Docker with:
Enable and start the Docker service so it runs automatically:
You can check that Docker is running correctly with:
Create Directories for Duplicati
Create folders on the host to store backups and configuration files so that data persists even if the container is removed or updated:
Pull the Duplicati Image
Next, download the latest Duplicati Docker image from Docker Hub:
This ensures you are using the most recent stable release.
Run the Duplicati Container
Start the container and map port 8200 (Duplicati’s web interface) to the host:
Explanation of options
-
-p 8200:8200
– Exposes the web interface on port 8200. -
-v /opt/duplicati/backups:/backups
– Stores your actual backup files on the host. -
-v /opt/duplicati/config:/config
– Keeps Duplicati’s settings and schedules persistent. -
-e DUPLICATI_PASS=…
– Sets the web interface password (replace with your own secure password). -
--restart unless-stopped
– Automatically restarts the container if the system reboots.
Access the Web Interface
Once the container is running, open a browser and go to:
Log in with:
-
Username:
admin
-
Password: the value you set in
DUPLICATI_PASS
.