/docker_named_volume_backup

easy shell script for backup & restore docker named volume

Primary LanguageShell

docker_volume_backup

usage:

first list your docker volume and get volumn name

sudo docker volume ls

backup

#sudo backup_docker_volume.sh <volumn_name> <tar_file>
sudo bash ./backup_docker_volume.sh codimd_database-data backup1.tar

restore

#sudo restore_docker_volume.sh <volumn_name> <tar_file>
sudo bash ./restore_docker_volume.sh codimd_database-data backup1.tar