Choosing between Duplicati vs Restic vs Kopia for docker volume backup comes down to how you like to work. All three encrypt your data, handle incremental backups, and can push copies off your VPS. But they were built for different people: Duplicati wants you in a browser GUI, Restic wants you in a terminal with cron, and Kopia sits in between with snapshot policies you set once and forget.
Your databases, uploaded files, and app state live in Docker volumes. Lose the volume and you lose the app, even if your compose files are safely in git. This guide walks through each tool hands-on: setup, encryption, scheduling, and what a restore actually looks like.
Why Docker Volumes Need Their Own Backup Plan
A Docker volume is a directory managed by Docker. Your images and compose files are replaceable; the volume contents under /var/lib/docker/volumes/ are not. A strategy for docker volume backup has to deal with two realities: files change while containers run, and you need a restore path you have tested, not just a cron job you hope works.
For databases inside containers, the safest approach is to stop the container briefly before the backup, or to dump the database and back up the dump. Filesystem-level copies of a running database can be inconsistent. Plan for that from the start, whichever tool you pick.
Duplicati vs Restic vs Kopia: Head-to-Head
A quick side-by-side of the three docker volume backup tools before the deep dive:
| Duplicati | Restic | Kopia | |
|---|---|---|---|
| Interface | Web GUI (port 8200) | Command line | Command line + optional GUI |
| Runs as | Its own Docker container | Single binary, no daemon | Single binary, no daemon |
| Encryption | AES-256, passphrase set in the GUI | AES-256, repository password | AES-256 (XChaCha20 option) |
| Deduplication | Block-level | Content-defined chunking | Content-defined chunking |
| Scheduling | Built-in scheduler in the GUI | cron or systemd timer (you set it up) | Snapshot policies with schedules |
| Destinations | Local disk, S3-compatible, SFTP, many cloud backends | Local disk, S3, SFTP, B2, Azure, GCS | Local disk, S3, SFTP, B2, GCS, Azure |
| Restore UX | Point and click in the browser | One command per snapshot | One command, snapshot browser available |
| Best for | Admins who prefer a GUI | Scripted, cron-driven VPS setups | Policy-based retention with fast dedup |
Duplicati: Backups With a Web GUI
Duplicati runs as a container and gives you a browser interface on port 8200. You add a backup job, point the source at your volumes, pick a destination, set a passphrase, and let its built-in scheduler handle the timing. It is the friendliest of the three if you do not want to write scripts.
A typical install on a VPS:
docker run -d --name duplicati
-p 8200:8200
-e PUID=1000 -e PGID=1000
-e TZ=Asia/Jakarta
-v /srv/duplicati/config:/config
-v /var/lib/docker/volumes:/source:ro
-v /srv/backups:/backups
--restart unless-stopped
duplicati/duplicati
Mounting /var/lib/docker/volumes read-only keeps the backup job from touching live data. After the container starts, open http://your-vps-ip:8200, create a backup job, and add an encryption passphrase. For offsite copies, Duplicati supports S3-compatible storage and SFTP directly in the GUI; check official pricing for your chosen destination.
Restic: CLI-First Snapshots
Restic is a single static binary with no daemon and no GUI. You point it at a repository, set a password, and script the rest. This is the tool of choice if your VPS workflow already lives in shell scripts and cron, and a restic backup docker volumes routine fits naturally into that pattern.
Initialize a local repository and back up a volume:
export RESTIC_REPOSITORY=/srv/restic-repo
export RESTIC_PASSWORD_FILE=/root/.restic-pass
restic init
restic backup /var/lib/docker/volumes/app_data --tag docker
List snapshots and restore one:
restic snapshots
restic restore latest --target /restore/app --tag docker
Restic deduplicates across snapshots, so ten daily backups of a mostly-unchanged volume cost little extra space. For remote storage, point RESTIC_REPOSITORY at an S3 bucket or SFTP path instead of a local directory. Restic also supports locking, so two backup jobs cannot corrupt the same repository.
Kopia: Policies and Content-Defined Deduplication
Kopia is also a single binary, but it thinks in terms of policies: you define compression, retention, and scheduling rules once, and every snapshot follows them. Its content-defined deduplication is fast on large volumes, which shows on VPS disks with big media folders.
Create a repository, set a policy, and take a snapshot:
kopia repository create filesystem --path /srv/kopia-repo
kopia policy set --global --compression zstd
kopia snapshot create /var/lib/docker/volumes/app_data
Inspect and restore:
kopia snapshot list
kopia restore <snapshot-id> /restore/app
Kopia’s policy engine is its standout feature: retention rules like “keep 7 daily, 4 weekly, 12 monthly” are one-liners. It also has a GUI (kopia-ui) if you want a visual snapshot browser without giving up the CLI workflow.
Scheduling Backups on Your VPS
Duplicati has scheduling built in. Restic and Kopia expect you to bring your own, which on a Linux VPS usually means cron or a systemd timer. A cron entry that runs a backup script at 2 AM and uses a lock file so overlapping runs cannot happen:
0 2 * * * /usr/bin/flock -n /tmp/backup.lock
/usr/local/bin/backup-volumes.sh >> /var/log/backup.log 2>&1
Your script should stop database containers before the backup and start them after, or back up a database dump instead of the live files. Wherever you keep the backup, send a second copy somewhere off the VPS. A backup that lives on the same disk as the data it protects is a copy, not a backup.
Restore: The Part That Actually Matters
A backup you have never restored is a theory. Every few months, pick a non-production path and actually run the restore commands. With Restic it is one command with a snapshot ID or latest; with Kopia you list snapshots and restore by ID; with Duplicati you walk through the restore wizard in the GUI.
Test that the restored files are usable, not just present. For a database volume, spin up a throwaway container against the restored data and check that the app starts. Write down the exact commands you used and keep them next to your backup script. The restore drill is also the fastest way to find out your passphrase file is missing or your cron job has been silently failing.
Which Tool Fits Your Setup?
Pick based on how you administer your VPS:
- Choose Duplicati if you want a GUI and a built-in scheduler, and you are comfortable running one more container. Good for admins who manage a handful of VPS instances and check on things by browser.
- Choose Restic if you live in the terminal and want backups expressed as shell scripts and cron jobs. The single binary and wide backend support make it easy to standardize across many servers.
- Choose Kopia if you want retention policies and strong deduplication with minimal ongoing fiddling. A good middle ground when volumes are large and you want compression and retention handled declaratively.
The tool you will actually maintain beats the tool with the longest feature list. If you already use cron for everything, Restic slides in with the least friction; if you dread the terminal, Duplicati removes that barrier. And because a backup job that silently stops running is its own risk, our UptimeRobot vs Better Uptime vs HetrixTools comparison covers the monitoring side.
Frequently Asked Questions
Can I back up a Docker volume while the container is running?
Yes for plain files, but stop database containers first or back up a dump instead. Restoring a filesystem copy of a running database can leave it in an inconsistent state.
Do these tools encrypt my backups?
All three encrypt with AES-256 by default once you set a passphrase or repository password. Kopia also offers XChaCha20. Store the passphrase somewhere safe and separate from the backup itself; without it, the backup is unreadable.
Where should I store the backups?
Keep one copy on the VPS for fast restores and one copy off the server: S3-compatible object storage, SFTP to another machine, or an external drive. All three tools support multiple backends, so you are not locked into one provider.
How much disk space do incremental backups use?
Only changed blocks are stored after the first full snapshot, thanks to deduplication in all three tools. The exact ratio depends on how much your data churns.