Docker Volume Backup
docker-volume-backup is a lightweight (below 25MB) companion container that backs up Docker volumes locally or to any S3, WebDAV, Azure Blob Storage, Dropbox,…
Platform availability
Available on 1 of 10 platforms
- Unraid (not listed)
- TrueNAS (not listed)
- Umbrel (not listed)
- ZimaOS (not listed)
- Proxmox (not listed)
- Helm (not listed)
- Mac (not listed)
- Windows (not listed)
- Linux (not listed)
- Any server
Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.
75/100 Good
- Maintained
- 100last commit 1 day ago
- Popular
- 724,086 GitHub stars
- Easy to install
- 251 install platform, install notes
- Light to run
- No data
- Security check
- 77no serious findings, 1 minor, CI, tests, OpenSSF Scorecard 5.1/10
Based on 4 of 5 factors.
Availability: platform listings confirmed today
- GitHub stars
- 4,086
- Open issues
- 24
- Last commit
- 2026-12-03
- Latest release
- v2.51.0
- License
- MPL-2.0
- Activity
- steady
Checked today - source: GitHub (offen/docker-volume-backup)
Resources & Compatibility
Requirements not published yet.
Checked today - source: Docker Hub image tags and published docs
First-install notes
- Getting started: add a backup service to Compose Add a backup service to your Docker Compose file, mount the volume you want to back up, and mount the Docker socket (/var/run/docker.sock) so the tool can stop and restart containers during backups. Without the socket, it can't pause containers, and without mounting a folder to /archive, no local copy of your backup is kept anywhere you can reach. source
- Mount the Docker socket (correctly for rootless Docker) The container needs access to the Docker socket to control other containers. If you use rootless Docker (Docker running as your user instead of root), mount /run/user/1000/docker.sock instead of the usual /var/run/docker.sock, or the backup container won't be able to see or stop your containers. source
- Set BACKUP_RETENTION_DAYS so old backups get cleaned up Set the BACKUP_RETENTION_DAYS environment variable (e.g. '7' to keep a week of backups) and optionally BACKUP_PRUNING_PREFIX so only matching files are deleted. Without this, backups pile up forever and can eventually fill your disk. source
- Getting started Add the offen/docker-volume-backup image as a lightweight companion container to your existing Docker Compose setup. It mounts the Docker socket (also supported for rootless Docker), supports local, S3, WebDAV, Azure Blob, Dropbox, Google Drive and SSH storage, GPG encryption, and rotation via BACKUP_RETENTION_DAYS to clean up old backups. source
Fetched today - each note links to its source
Variants
Alternatives (1)
Checked today - source: AlternativeTo
Common questions
How do I stop containers during backup to ensure data consistency?
Add the label docker-volume-backup.stop-during-backup=true to the container; the backup container stops it during the backup and restarts it afterwards. This requires the Docker socket to be mounted so the script can control other containers.
How does docker-volume-backup work with rootless Docker?
When using rootless Docker, mount /run/user/1000/docker.sock instead of the usual /var/run/docker.sock, otherwise the backup container cannot see or stop your containers.
How do I automatically delete old backups?
Set the BACKUP_RETENTION_DAYS environment variable (e.g. 7 to keep a week of backups), and optionally BACKUP_PRUNING_PREFIX so only matching files are pruned. Without it, backups accumulate indefinitely and can fill your disk.
Why isn't a local copy of my backup showing up anywhere?
You need to mount a folder to /archive in the backup container; otherwise no local copy of the backup is kept anywhere you can reach.
Can I back up containers that aren't managed by Docker Compose?
The tool is Compose-centric in its typical usage, so containers not set up via Compose are harder to integrate, though one-off backups using the Docker CLI are supported.
Answers sourced from github.com, github.com, github.com, offen.github.io, www.redditmedia.com
Community
- Docker-volume-backup: Backup Docker volumes locally, S3, WebDAV (forum)
- So what is the best way to backup my docker image volumes? (forum)
- Docker Volume backup best practices - Docker Community Forums (forum)
- Back up Docker container's volumes correctly - Stack Overflow (forum)
- Question on using docker-volume-backup with multiple docker ... - GitHub (forum)
Collected today - public community threads