Public | Automated Build

Last pushed: 6 months ago
Short Description
Easy backup and restore your docker volume
Full Description

docker-volume-backup

Easy backup and restore your docker volume.

Attention: You should not use the docker volume during backup or restore, otherwise your data might be damaged!

Backup docker volume

Syntax:

docker run -v [volume-name]:/volume -v [output-dir]:/backup --rm scorb/docker-volume-backup backup [archive-name]

For example:

docker run -v my-docker-volume:/volume -v /tmp:/backup --rm scorb/docker-volume-backup backup archive-file

will backup volume named my-docker-volume to archive file /tmp/archive-file.tar.gz

Restore docker volume

Attention: Your target docker volume will be wiped before backup restore!

Syntax:

docker run -v [volume-name]:/volume -v [input-dir]:/backup --rm scorb/docker-volume-backup restore [archive-name]

For example:

docker run -v my-docker-volume:/volume -v /backup-data:/backup --rm scorb/docker-volume-backup restore archive-file

will clean and restore volume named my-docker-volume from archive file /backup-data/archive-file.tar.gz

Blog post: Auto-Backup für Docker Volumes

Docker Pull Command
Owner
scorb
Source Repository