mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-24 17:21:03 +01:00
Solved bugs
This commit is contained in:
parent
568888952f
commit
d49b212290
@ -4,7 +4,10 @@
|
||||
volume_name="$1"
|
||||
backup_hash="$2"
|
||||
backup_path="/Backups/$backup_hash/docker-volume-backup/latest/$volume_name"
|
||||
if docker volume inspect; then
|
||||
echo "Inspect volume $volume_name"
|
||||
docker volume inspect "$volume_name"
|
||||
exit_status_volume_inspect=$?
|
||||
if [ $exit_status_volume_inspect -eq 0 ]; then
|
||||
echo "Volume $volume_name allready exists"
|
||||
else
|
||||
echo "Create volume $volume_name"
|
||||
|
Loading…
Reference in New Issue
Block a user