From 50d5e5743dc94945f32c916ee3b37356d7a6b8af Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 26 May 2018 09:39:24 -0300 Subject: Rename --check to --list --- README.md | 6 +++--- borger | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 123e7a0..9319508 100644 --- a/README.md +++ b/README.md @@ -70,12 +70,12 @@ can be adjusted using the `INTERVAL` config variable. See [this issue](https://github.com/borgbackup/borg/issues/325) for a discussion on continous backups. -# Checking your backups +# Listing your backups As simply as - borger servername --check - borger mydisk --check + borger servername --list + borger mydisk --list # WARNING diff --git a/borger b/borger index 5b002b9..881fa03 100755 --- a/borger +++ b/borger @@ -28,7 +28,7 @@ function fatal { } function borger_usage { - echo "usage: $BASENAME [--continuous|--check]" + echo "usage: $BASENAME [--continuous|--list]" echo -n "available destinations from $BASE_CONFIG: " ls $BASE_CONFIG exit 1 @@ -69,8 +69,8 @@ function borger_config { fi } -# Check -function borger_check { +# List +function borger_list { borg list exit $? } @@ -185,7 +185,7 @@ if [ -z "$DESTINATION" ]; then borger_usage elif [ -z "$OPTION" ]; then borger_run -elif [ "$OPTION" == "--check" ]; then +elif [ "$OPTION" == "--list" ]; then borger_config borger_check elif [ "$OPTION" == "--continuous" ]; then -- cgit v1.2.3