Skip to content
Snippets Groups Projects
Commit a75844fa authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'unlock-before-backup' into 'master'

Unlock before backup

See merge request !76
parents 4c1c0268 e810ca2d
No related branches found
No related tags found
1 merge request!76Unlock before backup
...@@ -130,6 +130,13 @@ ...@@ -130,6 +130,13 @@
if eval restic snapshots ${ARGS_DEFAULT} >/dev/null 2>&1 if eval restic snapshots ${ARGS_DEFAULT} >/dev/null 2>&1
then then
echo "__REPO__ OK, Backup repository already exists." echo "__REPO__ OK, Backup repository already exists."
echo "--- UNLOCK ... just in case :-)"
echo restic unlock ${ARGS_DEFAULT}
color cmd
eval restic unlock ${ARGS_DEFAULT}
color reset
echo
else else
echo "Backup repository needs to be created." echo "Backup repository needs to be created."
local _mycmd="restic init ${ARGS_DEFAULT}" local _mycmd="restic init ${ARGS_DEFAULT}"
......
...@@ -177,7 +177,7 @@ function setAction(){ ...@@ -177,7 +177,7 @@ function setAction(){
fi fi
# set defaults for prune and verify # set defaults for prune and verify
echo ">>> Detect default behaviuor:" echo ">>> Detect default behaviour:"
setAction "prune" $lastprunefile; doPrune=$doValue setAction "prune" $lastprunefile; doPrune=$doValue
setAction "verify" $lastverifyfile; doVerify=$doValue setAction "verify" $lastverifyfile; doVerify=$doValue
echo echo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment