mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-12-22 21:55:03 +01:00
Solved naming bug
This commit is contained in:
parent
be2596af98
commit
ce14052787
@ -3,7 +3,7 @@
|
||||
|
||||
backup_time="$(date '+%Y%m%d%H%M%S')"
|
||||
docker_backups_mount="$(test -z "$1" && echo "/Backups/" || echo "/$(basename "$1")/")"
|
||||
native_backups_mount_prefix="$(test -z "$1" && echo "$HOME" || echo "$1")"
|
||||
native_backups_mount_prefix="$(test -z "$1" && echo "$HOME" || echo "/$(dirname "$1")/")"
|
||||
native_backups_mount="$native_backups_mount_prefix$docker_backups_mount"
|
||||
for docker_container_name in $(docker ps --format '{{.Names}}');
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user