Duplicati on Docker – Deploy and Setup
In this tutorial, let’s learn how to set up Duplicati on Docker
Duplicati
- To begin with, Duplicati is free and an open source backup tool
- Not to mention, It supports incremental backups and data deduplication which helps to save space
- In addition uses strong AES-256 encryption to protect your privacy
- Further, it works with standard protocols like FTP, SSH as well as popular services like Microsoft OneDrive, AWS S3, Google Drive and many others.
Read more on Duplicati here:
https://duplicati.readthedocs.io/en/latest/
https://docs.linuxserver.io/images/docker-duplicati
Prerequisites
- Firstly, Docker and Docker-Compose must be installed and ready to use (Refer to this post if not already installed: Docker and Docker-Compose on Ubuntu)
- Additionally, it is a good practice to have Volume mounts of all containers in a single directory or sub directory to enable easy backup
Steps to deploy Duplicati on Docker
1. Create a folder for the project and navigate into it
mkdir -p duplicati
cd duplicati
2. Followed by this, Create a docker-compose.yaml and add in the below configuration in the file
# Create the docker-compose.yaml file
touch docker-compose.yaml
# Open the file with an editor and paste in the below contents
nano docker-compose.yaml
---
version: "2.1"
services:
duplicati:
image: ghcr.io/linuxserver/duplicati
container_name: duplicati
environment:
- PUID=1000 # The PUID can be set to 0 which will give root permissions to the container
- PGID=1000 # The PGID can be set to 0 which will give root permissions to the container
- TZ=Asia/Kolkata # Set the appropriate timezone
volumes:
- </path/to/appdata/config>:/config # Volume Mount to the config folder of all your docker containers
- </path/to/backups>:/backups # If the backup needs to be stored on your machine, add a volume mount to that path here
- </path/to/source>:/source # Volume Mount to the folder that needs to backed up
ports:
- 8200:8200
restart: unless-stopped
3. Finally, Start the container with docker-compose
# Use the -d flag to run docker-compose in detached state (background)
docker-compose up -d
Configure Duplicati
1. Access Duplicati using a browser on https://localhost:8200 or https://your-ip:8200. You should be greeted with a screen like below. Next, Click on “Yes” to set a password to your Duplicati account
2. Next, Set your Password, Remote Access, and Usage Statistics (Optional) settings and click on “OK” as shown below
3. Once this is done, Duplicati will prompt you to log in using the Password that has been set in the previous step
4. After entering the password, you should be able to see the homepage of Duplicati as shown below
Congratulations!!! You have successfully set up Duplicati on your machine!!
To learn how to set up local / google drive backup with Duplicati refer to this blog: Duplicati on Docker – Local / Google Drive Backup
Pingback:Duplicati on Docker - Local / Google Drive Backup » EasyCode
This man right here knows every damn thing !
Pingback:Watchtower on Docker - Automate Docker image updates » EasyCode
Hi there, just wanted to mention, I liked this article.
It was helpful. Keep on posting!
If some one wishes expert view about blogging after that i advise
him/her to pay a quick visit this website, Keep up the pleasant work.
Thanks for the article post.Thanks Again. Want more.