From 817535337779a978c3be40b967f6f4b020bcbbb2 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Mon, 12 Oct 2020 12:06:18 +0200 Subject: [PATCH] activated backup --- scripts/backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/backup.sh b/scripts/backup.sh index e42bfa0..f9b0e49 100644 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -26,9 +26,9 @@ do docker run --rm --volumes-from "$docker_container_name" -v "$native_backups_mount:$docker_backups_mount" "kevinveenbirkenbach/alpine-rsync" sh -c " test -d $source_path && mkdir -p \"$destination_path\" && - rsync -a --delete --backup-dir=\"$backup_dir_path\" $source_path $destination_path || + rsync -ab --delete --backup-dir=\"$backup_dir_path\" $source_path $destination_path || mkdir -p \"$(dirname "$destination_path")\" && - rsync -a --delete --backup-dir=\"$(dirname "$backup_dir_path")\" $source_path $(dirname "$destination_path")"; + rsync -ab --delete --backup-dir=\"$(dirname "$backup_dir_path")\" $source_path $(dirname "$destination_path")"; done echo "start container: $docker_container_name" && docker start "$docker_container_name" done