From: Christian Heller Date: Tue, 31 Oct 2023 16:23:41 +0000 (+0100) Subject: Improve borg.sh safety. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/index.html?a=commitdiff_plain;h=d7d7e33eed91589bc004bfa07216879e85162b24;p=config Improve borg.sh safety. --- 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 /