home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d65b739
)
Improve borg.sh safety.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 31 Oct 2023 16:23:41 +0000
(17:23 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 31 Oct 2023 16:23:41 +0000
(17:23 +0100)
bookworm/borg.sh
patch
|
blob
|
history
diff --git
a/bookworm/borg.sh
b/bookworm/borg.sh
index 18321b15fa949256cc3cd13077e6002ef73cee52..0ff0c0898d37bc4345712dfeb7b30bf4609a8511 100755
(executable)
--- 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 /