]> gitweb.fluxo.info Git - borger.git/commitdiff
Rename --check to --list
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 12:39:24 +0000 (09:39 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 12:39:24 +0000 (09:39 -0300)
README.md
borger

index 123e7a0b99c9b9513c1d92f7bb0645333b681def..93195089172d6bfde3c49146ba82cb3e5f9d3a9f 100644 (file)
--- 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 5b002b9f0d3c99ab537b2e23070a12f22202f754..881fa0398fffaa948e6f2d1db303b70d9f51f6ac 100755 (executable)
--- a/borger
+++ b/borger
@@ -28,7 +28,7 @@ function fatal {
 }
 
 function borger_usage {
-  echo "usage: $BASENAME <destination> [--continuous|--check]"
+  echo "usage: $BASENAME <destination> [--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