Add functionality to update restic

release/full-rewrite
capntack 6 months ago
parent 2c52dc2bbd
commit ae3bbf0eb6

@ -4,6 +4,11 @@
# SCRIPT PREP #
###############
# Update restic
if [ $UPDATE = 'yes' ]; then
restic self-update
fi
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
. "${SCRIPT_DIR}"/variables.sh

@ -6,6 +6,9 @@
## For any function that you want to run, change from "no" to "yes"
## Update restic (restic must be installed and script must be ran as root/sudo for this to work)
readonly UPDATE='no'
## For debugging the script
readonly DEBUG='no'

Loading…
Cancel
Save