From 3692325288eccdbaf85752b719806f49f3db5dea Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Sun, 11 Oct 2020 21:42:29 +0200 Subject: [PATCH] Solved bug --- scripts/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup.sh b/scripts/backup.sh index 03739c6..16955d2 100644 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -6,7 +6,7 @@ for docker_container_name in $(docker ps --format '{{.Names}}'); do #backup_dir_base_path="$docker_backup_folder_path""archive/$(date '+%Y%m%d%H%M%S')/""$docker_container_name/" echo "stop container: $docker_container_name" && docker stop "$docker_container_name" - for rsync_source_path in $(docker inspect --format '{{ range .Mounts }}{{ .Destination }}{{ end }}' "$docker_container_name"); + for rsync_source_path in $(docker inspect --format '{{ range .Mounts }}{{ println .Destination }}{{ end }}' "$docker_container_name"); do rsync_docker_destination_path="$docker_backup_folder_path""last/""$docker_container_name$rsync_source_path"; #backup_dir_path="$backup_dir_base_path$rsync_source_path";