Backup Docker volumes locally or to any S3, WebDAV, Azure Blob Storage, Dropbox, Google Drive or SSH compatible storage
Backup Docker volumes locally or to any S3, WebDAV, Azure Blob Storage, Dropbox, Google Drive or SSH compatible storage
Backup Docker volumes locally or to any S3, WebDAV, Azure Blob Storage, Dropbox, Google Drive or SSH compatible storage.
The offen/docker-volume-backup Docker image can be used as a lightweight (below 25MB) companion container to an existing Docker setup. It handles recurring or one-off backups of Docker volumes to a local directory, any S3, WebDAV, Azure Blob Storage, Dropbox, Google Drive or SSH compatible storage (or any combination thereof) and rotates away old backups if configured. It also supports encrypting your backups using GPG and sending notifications for (failed) backup runs.
Documentation is found at https://offen.github.io/docker-volume-backup
Add a backup service to your compose setup and mount the volumes you would like to see backed up:
…To run a one time backup, mount the volume you would like to see backed up into a container and run the backup command:
docker run --rm \
-v data:/backup/data \
--env AWS_ACCESS_KEY_ID="<xxx>" \
--env AWS_SECRET_ACCESS_KEY="<xxx>" \
--env AWS_S3_BUCKET_NAME="<xxx>" \
--entrypoint backup \
offen/docker-volume-backup:v2Alternatively, pass a --env-file in order to use a full config as described in the docs.
In case your are looking for help or guidance on how to incorporate docker-volume-backup into your existing setup, consider becoming a sponsor and book a one hour consulting session.
Copyright © 2026 offen.software and contributors. Distributed under the MPL-2.0 License.
No open issues yet, or sync has not completed.