diff options
author | EuAndreh <eu@euandre.org> | 2024-05-09 14:47:00 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-05-09 14:47:00 -0300 |
commit | 0a1202759affb7a0a2e2576a1099ab6755b0ba87 (patch) | |
tree | d571235ff2e24223d15fd925e2bc235fdb667106 /bin | |
parent | etc/sh/rc: export $LDFLAGS (diff) | |
download | dotfiles-0a1202759affb7a0a2e2576a1099ab6755b0ba87.tar.gz dotfiles-0a1202759affb7a0a2e2576a1099ab6755b0ba87.tar.xz |
bin/backup: Update help string
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/backup | 10 | ||||
-rwxr-xr-x | bin/borgy | 2 |
2 files changed, 3 insertions, 9 deletions
@@ -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" ~/ @@ -1,8 +1,6 @@ #!/bin/sh set -eu - -set -x nicely statusconv 1:0 borg create \ --exclude-nodump \ --stats \ |