Backup Docker volumes locally or to any S3, WebDAV, Azure Blob Storage, Dropbox, Google Drive or SSH compatible storage
open sourceMPL-2.0self-hostablefree
docker-volume-backup is a lightweight companion container that backs up Docker volumes on a schedule or once, to a local directory, any S3-compatible storage, WebDAV, Azure Blob Storage, Dropbox, Google Drive or SSH servers, or several at once. Add it as a service in a Compose file, mount the volumes to back up, and it can stop labelled containers during the backup for consistency, run custom commands before and after, rotate away old backups, encrypt archives with GPG and send notifications when a run fails. Made by offen.software, MPL-2.0 licensed.
Problems it solves
- back up my Docker Compose volumes to S3 every night without writing cron scripts
- stop my database container during a backup so the volume snapshot is consistent
- keep only the last few weeks of volume backups and delete older ones automatically
- encrypt backups of my self-hosted apps before they leave the server
- get notified when a backup of my homelab containers fails
- send Docker volume backups to Dropbox, Google Drive or an SSH server instead of S3
Features
- recurring or one-off backups of Docker volumes
- targets: local directory, S3-compatible storage, WebDAV, Azure Blob Storage, Dropbox, Google Drive, SSH
- several storage targets at once
- stops labelled containers during backup and restarts them after
- custom commands before and after backups
- rotation of old backups
- GPG encryption
- notifications for failed runs
- image on Docker Hub and GitHub Container Registry
Limitations
- Only supports the Docker CE engine: other engines may work but aren't supported1
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what docker-volume-backup does.
- Zerobyte Backup automation for self-hosters, built on top of restic
- autorestic Config driven, easy backup cli for restic
- WAL-G Archival and restoration for databases in the cloud
- borgmatic Simple, configuration-driven backup software for servers and workstations
- Pika Backup Keep your data safe
- Backrest Backrest is a web UI and orchestrator for restic backup.
