From 093024e5a977f6af94c58644f2147865a448d389 Mon Sep 17 00:00:00 2001 From: shmick Date: Sat, 18 Nov 2023 13:19:16 +0200 Subject: [PATCH] Shite commit to trigger Action --- kumonoboru.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/kumonoboru.sh b/kumonoboru.sh index edfacf9..d3c4c0d 100755 --- a/kumonoboru.sh +++ b/kumonoboru.sh @@ -1,14 +1,14 @@ #!/bin/bash ##Simple script to run Restic backups -help() +show_help() { echo "Kumonoboru - Back up important location to the B2 cloud using Restic." echo " {-c|--clean} -- Force prune of the remote repositories" echo " {-r|--repository} repository -- Only backup the specified repository." echo " {-l|--limit} #[Kbps] -- Limit upload & download speed" echo " {-v|--verbose} -- Print debug messages" - echo " {-h|--help} -- Print this help message and exit" + echo " {-h|--show_help} -- Print this show_help message and exit" echo "Available repositories:" echo "Gerbil-TK Photos (path: /var/Red-Vol/Media/Pictures)" echo "Pukeko-XYZ-Containers Containers (path: /var/Red-Vol/Media/Containers)" @@ -36,9 +36,9 @@ flags() shift export BWLIMIT="$1" shift;; - (-h|--help) - help;; - (*) help;; + (-h|--show_help) + show_help;; + (*) show_help;; esac done } @@ -151,7 +151,7 @@ elif [[ -n $REPOSITORY ]] && [[ -z $CLEAN ]]; then backup Pukeko-XYZ-Cloud /var/Red-Vol/Media/Cloud/ ;; (*) - help;; + show_help;; esac #If cleaning was not forced, backup the repositories @@ -176,10 +176,9 @@ elif [[ -n $REPOSITORY ]] && [[ -n $CLEAN ]]; then clean Pukeko-XYZ-Cloud ;; (*) - help;; + show_help;; esac fi #Wrap up this run's log and report nicely echo "All done; have a nice day!" -exit 0