| Crates.io | vsnap |
| lib.rs | vsnap |
| version | 0.6.0 |
| created_at | 2025-03-16 12:31:59.760563+00 |
| updated_at | 2025-03-18 00:04:07.858516+00 |
| description | Command line utility to snapshot & restore docker volumes |
| homepage | https://github.com/fominv/vsnap.git |
| repository | https://github.com/fominv/vsnap.git |
| max_upload_size | |
| id | 1594393 |
| size | 69,298 |
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.
# 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
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
