diff options
-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 \ |