Docker-volumes module: Snapshot
Takes a snapshot of a Docker volume and save it to a tar.gz
archive, copy over to a directory or stream to stdout
.
Example
Saving myvolume
Docker volume to a tar.gz
file:
space -m docker-volumes /snapshot/ -- "myvolume" "archive-0001.tar.gz"
Saving myvolume
Docker volume to a directory:
space -m docker-volumes /snapshot/ -- "myvolume" "/home/user/myvolume/"
Exit status code is expected to be 0 on success.
Edit this page