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

add restic unlock on init

parent 4c1c0268
No related branches found
No related tags found
1 merge request!76Unlock before backup
......@@ -130,6 +130,13 @@
if eval restic snapshots ${ARGS_DEFAULT} >/dev/null 2>&1
then
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
echo "Backup repository needs to be created."
local _mycmd="restic init ${ARGS_DEFAULT}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment