#volume #snapshot #restore #docker #command-line-tool

bin+lib vsnap

Command line utility to snapshot & restore docker volumes

7 releases (4 breaking)

Uses new Rust 2024

new 0.6.0 Mar 18, 2025
0.6.0-rc.2 Mar 17, 2025
0.5.0 Mar 16, 2025
0.4.0 Mar 16, 2025
0.2.0 Mar 16, 2025

#14 in #restore

Download history 458/week @ 2025-03-12

458 downloads per month

MIT license

25KB
584 lines

Crates.io MIT licensed

vsnap

A command line utility to snapshot & restore docker volumes.

Useful during development for resetting database migrations, but also applicable for restoring the state of general Docker volumes.

Note: This is not intended as a backup solution.

Features

# Help
vsnap --help

# Snapshot volumes
vsnap create source-volume snapshot-a

# Optionally with compression
vsnap create --compression source-volume snapshot-b

# Restore
vsnap restore snapshot-a new-volume

# Optionally overwrite / reset old volume
vsnap restore snapshot-a source-volume

# List snapshot volume with sizes
vsnap list --size

Installation

Make sure to have at least Rust 1.85 installed as well as docker running with proper permissions for your local user.

cargo install vsnap

Demo

demo

Dependencies

~21–32MB
~482K SLoC