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
|
#!/bin/bash
|
||||||
##Simple script to run Restic backups
|
##Simple script to run Restic backups
|
||||||
|
|
||||||
help()
|
show_help()
|
||||||
{
|
{
|
||||||
echo "Kumonoboru - Back up important location to the B2 cloud using Restic."
|
echo "Kumonoboru - Back up important location to the B2 cloud using Restic."
|
||||||
echo " {-c|--clean} -- Force prune of the remote repositories"
|
echo " {-c|--clean} -- Force prune of the remote repositories"
|
||||||
echo " {-r|--repository} repository -- Only backup the specified repository."
|
echo " {-r|--repository} repository -- Only backup the specified repository."
|
||||||
echo " {-l|--limit} #[Kbps] -- Limit upload & download speed"
|
echo " {-l|--limit} #[Kbps] -- Limit upload & download speed"
|
||||||
echo " {-v|--verbose} -- Print debug messages"
|
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 "Available repositories:"
|
||||||
echo "Gerbil-TK Photos (path: /var/Red-Vol/Media/Pictures)"
|
echo "Gerbil-TK Photos (path: /var/Red-Vol/Media/Pictures)"
|
||||||
echo "Pukeko-XYZ-Containers Containers (path: /var/Red-Vol/Media/Containers)"
|
echo "Pukeko-XYZ-Containers Containers (path: /var/Red-Vol/Media/Containers)"
|
||||||
@@ -36,9 +36,9 @@ flags()
|
|||||||
shift
|
shift
|
||||||
export BWLIMIT="$1"
|
export BWLIMIT="$1"
|
||||||
shift;;
|
shift;;
|
||||||
(-h|--help)
|
(-h|--show_help)
|
||||||
help;;
|
show_help;;
|
||||||
(*) help;;
|
(*) show_help;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@@ -151,7 +151,7 @@ elif [[ -n $REPOSITORY ]] && [[ -z $CLEAN ]]; then
|
|||||||
backup Pukeko-XYZ-Cloud /var/Red-Vol/Media/Cloud/
|
backup Pukeko-XYZ-Cloud /var/Red-Vol/Media/Cloud/
|
||||||
;;
|
;;
|
||||||
(*)
|
(*)
|
||||||
help;;
|
show_help;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#If cleaning was not forced, backup the repositories
|
#If cleaning was not forced, backup the repositories
|
||||||
@@ -176,10 +176,9 @@ elif [[ -n $REPOSITORY ]] && [[ -n $CLEAN ]]; then
|
|||||||
clean Pukeko-XYZ-Cloud
|
clean Pukeko-XYZ-Cloud
|
||||||
;;
|
;;
|
||||||
(*)
|
(*)
|
||||||
help;;
|
show_help;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Wrap up this run's log and report nicely
|
#Wrap up this run's log and report nicely
|
||||||
echo "All done; have a nice day!"
|
echo "All done; have a nice day!"
|
||||||
exit 0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user