Skip to content

easy shell script for backup & restore docker named volume

Notifications You must be signed in to change notification settings

Trevo525/docker_volume_backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Docker Volume Backup

Usage:

List your docker volumes if you need to get the volume name.

docker volume ls

Backup

#./backup_docker_volume.sh <volume_name>
./backup_docker_volume.sh onedev_db

This will create a directory ./volume-backup/ and make a <volume_name>.tar.gz file.

Restore

#./restore_docker_volume.sh <volume_name>
./restore_docker_volume.sh onedev_db

./ isn't needed if you add to $PATH

About

easy shell script for backup & restore docker named volume

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%