aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xborger20
1 files changed, 19 insertions, 1 deletions
diff --git a/borger b/borger
index b16e1eb..1ba6389 100755
--- a/borger
+++ b/borger
@@ -29,7 +29,7 @@ function fatal {
# Display usage
function borger_usage {
- echo "usage: $BASENAME <destination> [--continuous|--list]"
+ echo "usage: $BASENAME <destination> [--continuous|--list|--check|--info]"
echo -n "available destinations from $BASE_CONFIG: "
ls $BASE_CONFIG
exit 1
@@ -90,6 +90,18 @@ function borger_list {
exit $?
}
+# Check
+function borger_check {
+ borg check
+ exit $?
+}
+
+# Info
+function borger_info {
+ borg info
+ exit $?
+}
+
# Our trap
function borger_trap {
trap 'info Backup interrupted >&2; exit 2' INT TERM
@@ -203,6 +215,12 @@ elif [ -z "$OPTION" ]; then
elif [ "$OPTION" == "--list" ]; then
borger_config
borger_list
+elif [ "$OPTION" == "--check" ]; then
+ borger_config
+ borger_check
+elif [ "$OPTION" == "--info" ]; then
+ borger_config
+ borger_info
elif [ "$OPTION" == "--continuous" ]; then
borger_config