From 0a1202759affb7a0a2e2576a1099ab6755b0ba87 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 9 May 2024 14:47:00 -0300 Subject: bin/backup: Update help string --- bin/backup | 10 +++------- bin/borgy | 2 -- 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 \ -- cgit v1.2.3