From d7d7e33eed91589bc004bfa07216879e85162b24 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 31 Oct 2023 17:23:41 +0100 Subject: [PATCH] Improve borg.sh safety. --- bookworm/borg.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bookworm/borg.sh b/bookworm/borg.sh index 18321b1..0ff0c08 100755 --- a/bookworm/borg.sh +++ b/bookworm/borg.sh @@ -126,6 +126,8 @@ elif [ "${first_arg}" = "orgpush" ]; then borg create --verbose --list "${archive}" "${to_backup}" --exclude ~/org/.git done elif [ "${first_arg}" = "orgpull" ]; then + echo "Doing ORGPULL, potentially overwriting important data. Hit Return to continue, last chance to abort!" + read _ archive_name="orgdir" read_pw cd / -- 2.30.2