home · contact · privacy
Improve borg.sh safety.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 31 Oct 2023 16:23:41 +0000 (17:23 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 31 Oct 2023 16:23:41 +0000 (17:23 +0100)
bookworm/borg.sh

index 18321b15fa949256cc3cd13077e6002ef73cee52..0ff0c0898d37bc4345712dfeb7b30bf4609a8511 100755 (executable)
@@ -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 /