vsnap

Crates.iovsnap
lib.rsvsnap
version0.6.0
created_at2025-03-16 12:31:59.760563+00
updated_at2025-03-18 00:04:07.858516+00
descriptionCommand line utility to snapshot & restore docker volumes
homepagehttps://github.com/fominv/vsnap.git
repositoryhttps://github.com/fominv/vsnap.git
max_upload_size
id1594393
size69,298
Vladimir Fomin (fominv)

documentation

README

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

Commit count: 0

cargo fmt