Shite commit to trigger Action
All checks were successful
Configure Kumonoboru / deploy (push) Successful in 1m2s
All checks were successful
Configure Kumonoboru / deploy (push) Successful in 1m2s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user