From 45cf62d18ce010e65437399143716bc42b5e529e Mon Sep 17 00:00:00 2001 From: DoTheEvo Date: Sat, 16 Sep 2023 12:13:14 +0200 Subject: [PATCH] update --- kopia_backup/readme.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kopia_backup/readme.md b/kopia_backup/readme.md index 0f50f98..e366665 100644 --- a/kopia_backup/readme.md +++ b/kopia_backup/readme.md @@ -167,9 +167,11 @@ kopia repository connect filesystem --path $REPOSITORY_PATH kopia snapshot create $BACKUP_THIS kopia repository disconnect -# 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 +# kopia does not interupts its run with an error if target or repository are missing +# this makes systemd OnSuccess OnFailure not behaving as they should +# below are checks of paths, so that the exit code can be error if they do not exists +# they are at the end because some backup might be done, we just want error report + IFS=' ' read -ra paths <<< "$BACKUP_THIS" for path in "${paths[@]}"; do if [ ! -e "$path" ]; then