Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 483 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 483 Bytes

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