Skip to content

junedkhatri31/docker-volume-snapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

docker-volume-snapshot

Docker volume snapshot utility command

Installation

sudo curl -SL https://raw.githubusercontent.com/junedkhatri31/docker-volume-snapshot/main/docker-volume-snapshot -o /usr/local/bin/docker-volume-snapshot
sudo chmod +x /usr/local/bin/docker-volume-snapshot

Usage

docker-volume-snapshot (create|restore) source destination
  create         create snapshot file from docker volume
  restore        restore snapshot file to docker volume
  source         source path
  destination    destination path

Example

docker-volume-snapshot create xyz_volume xyz_volume.tar
docker-volume-snapshot restore xyz_volume.tar xyz_volume

Compression

Supports tar's compression algorithms automatically based on the file extention, for eaxmple .tar.gz

docker-volume-snapshot create xyz_volume xyz_volume.tar.gz
docker-volume-snapshot restore xyz_volume.tar.gz xyz_volume

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages