From 6fffa5912324b9f19237e50e5b662b27d6043d9a Mon Sep 17 00:00:00 2001 From: DoTheEvo Date: Sat, 16 Sep 2023 11:55:14 +0200 Subject: [PATCH] update --- kopia_backup/readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kopia_backup/readme.md b/kopia_backup/readme.md index d2141bf..6670884 100644 --- a/kopia_backup/readme.md +++ b/kopia_backup/readme.md @@ -167,8 +167,9 @@ kopia repository connect filesystem --path $REPOSITORY_PATH kopia snapshot create $BACKUP_THIS kopia repository disconnect -# tests if paths in BACKUP_THIS exist, exit with error if any is missing -# this makes systemd OnSuccess OnFailure behave how they should +# kopia does not ends with error if target of backup or repository are missing +# this makes systemd OnSuccess OnFailure not behaving +# below are checks if paths are reachable so that exit code is error if not IFS=' ' read -ra paths <<< "$BACKUP_THIS" for path in "${paths[@]}"; do if [ ! -e "$path" ]; then