Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
iml-backup
Commits
a52ce500
Commit
a52ce500
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add restic unlock on init
parent
4c1c0268
No related branches found
No related tags found
1 merge request
!76
Unlock before backup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/transfer/restic.sh
+7
-0
7 additions, 0 deletions
plugins/transfer/restic.sh
with
7 additions
and
0 deletions
plugins/transfer/restic.sh
+
7
−
0
View file @
a52ce500
...
...
@@ -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
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment