This commit is contained in:
Kevin Veen-Birkenbach 2020-10-12 11:47:28 +02:00
parent 074915709a
commit 8b5b16be94

View File

@ -9,7 +9,7 @@ do
echo "stop container: $docker_container_name" && docker stop "$docker_container_name"
for source_path in $(docker inspect --format '{{ range .Mounts }}{{ if eq .Type "volume" }}{{ println .Destination }}{{ end }}{{ end }}' "$docker_container_name");
do
application_path="$docker_backups_mount$(cat /etc/machine-id)/docker/$docker_container_name"
application_path="$docker_backups_mount$(cat /etc/machine-id)/docker/$docker_container_name/"
first_destination_path="$application_path""first""$source_path";
latest_destination_path="$application_path""latest""$source_path";
backup_dir_path="$application_path""diffs/$backup_time/$source_path"