diff options
Diffstat (limited to 'bin/backup')
-rwxr-xr-x | bin/backup | 10 |
1 files changed, 3 insertions, 7 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" ~/ |