aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-05-09 14:47:00 -0300
committerEuAndreh <eu@euandre.org>2024-05-09 14:47:00 -0300
commit0a1202759affb7a0a2e2576a1099ab6755b0ba87 (patch)
treed571235ff2e24223d15fd925e2bc235fdb667106 /bin
parentetc/sh/rc: export $LDFLAGS (diff)
downloaddotfiles-0a1202759affb7a0a2e2576a1099ab6755b0ba87.tar.gz
dotfiles-0a1202759affb7a0a2e2576a1099ab6755b0ba87.tar.xz
bin/backup: Update help string
Diffstat (limited to 'bin')
-rwxr-xr-xbin/backup10
-rwxr-xr-xbin/borgy2
2 files changed, 3 insertions, 9 deletions
diff --git a/bin/backup b/bin/backup
index 44e2cd0..6531879 100755
--- a/bin/backup
+++ b/bin/backup
@@ -4,7 +4,7 @@ set -eu
usage() {
cat <<-'EOF'
Usage:
- backup [-q] [ARCHIVE_TAG]
+ backup [-q] [TAG]
EOF
}
@@ -16,7 +16,7 @@ help() {
-q disable verbose mode, useful for
non-interactive sessions
- ARCHIVE_TAG the tag used to create the new
+ TAG the tag used to create the new
backup (default: "default")
@@ -31,7 +31,7 @@ help() {
$BORG_REMOTE_PATH
Password-less SSH access is required, usually done via adding
- ~/.ssh/id_rsa.pub to suyin:.ssh/authorized_keys.
+ ~/.ssh/id_rsa.pub to $SSH_REMOTE:.ssh/authorized_keys.
Examples:
@@ -65,8 +65,4 @@ shift $((OPTIND - 1))
TAG="${1:-default}"
ARCHIVE="::{hostname}-{user}-{now}-$TAG"
-
-set -x
-# The contents of $VERBOSE_FLAGS doesn't involve user input:
-# shellcheck disable=2086
borgy $VERBOSE_FLAGS "$ARCHIVE" ~/
diff --git a/bin/borgy b/bin/borgy
index 4c70aba..7a6f62a 100755
--- a/bin/borgy
+++ b/bin/borgy
@@ -1,8 +1,6 @@
#!/bin/sh
set -eu
-
-set -x
nicely statusconv 1:0 borg create \
--exclude-nodump \
--stats \