docker-backup

Back up your Docker volumes and images.

docker-backup drives the docker CLI to export volumes, images and container filesystems into a plain folder with a manifest.json. Every file's SHA‑256 is recorded and checked on the way back in — and anything it writes can also be restored by hand with tar.

macOS & Linux Signed & notarized GPLv3

Install

Homebrew

Recommended
brew install joepreludian/tap/docker-backup

Upgrades with brew upgrade like anything else.

Install script

curl -fsSL https://docker-backup.jon.dev.br/install.sh | sh

Installs into ~/.local/bin. No sudo, and the download is checked against the release's published SHA‑256 before anything is written. Read it first if you'd rather not pipe a stranger's script into your shell.

Prefer to do it yourself? Grab a tarball from the latest release — Linux builds are statically linked against musl, macOS builds are signed with a Developer ID certificate and notarized by Apple.

Quick start

shell
# check the daemon and the tools it needs
docker-backup doctor

# named volumes + locally built images
docker-backup backup ./my-backup --per-file-bzip2

# manifest + hash check
docker-backup info ./my-backup

# shows a preview, then asks before touching anything
docker-backup restore ./my-backup

Read the documentation

Installation, a quickstart, and full guides to backing up and restoring.

docker-backup.readthedocs.io