From 3d775450209482e2b66a2213bcb311e90e7e2890 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Sun, 11 Oct 2020 22:05:05 +0200 Subject: [PATCH] Implemented sh --- scripts/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup.sh b/scripts/backup.sh index 16955d2..9276c78 100644 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -13,7 +13,7 @@ do echo "trying to backup $rsync_source_path..." rsync_host_destination_path="$HOME$rsync_docker_destination_path"; mkdir -p "$rsync_host_destination_path"; - docker run --rm --volumes-from "$docker_container_name" -v "$host_backup_folder_path:$docker_backup_folder_path" "kevinveenbirkenbach/alpine-rsync" rsync -a --delete "$rsync_source_path" "$rsync_docker_destination_path"; + docker run --rm --volumes-from "$docker_container_name" -v "$host_backup_folder_path:$docker_backup_folder_path" "kevinveenbirkenbach/alpine-rsync" sh -c "rsync -a --delete $rsync_source_path $rsync_docker_destination_path"; done echo "start container: $docker_container_name" && docker start "$docker_container_name" done