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
a1e70788
Commit
a1e70788
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update restore menu
parent
ebc8e37f
No related branches found
No related tags found
1 merge request
!122
restic: fix replace fqdn in RESTIC_REPOSITORY
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
restore.sh
+13
-5
13 additions, 5 deletions
restore.sh
with
13 additions
and
5 deletions
restore.sh
+
13
−
5
View file @
a1e70788
...
@@ -234,18 +234,24 @@ function doRestore(){
...
@@ -234,18 +234,24 @@ function doRestore(){
h1
"Restore :: Menu"
h1
"Restore :: Menu"
echo
" D - directory to restore:
$BACKUP_DIR
"
echo
" D - directory to restore:
$(
color cmd
;
echo
-n
$BACKUP_DIR
;
color reset
)
"
echo
-n
" W - time or snapshot ID :
$RESTORE_ITEM
"
echo
echo
"---------- Restore method 1:"
echo
echo
" M - mount backup with fuse"
echo
echo
"---------- Restore method 2:"
echo
echo
-n
" W - time or snapshot ID :
$(
color cmd
;
echo
-n
$RESTORE_ITEM
;
color reset
)
"
test
-z
"
$RESTORE_ITEM
"
&&
echo
-n
" ... set one first"
test
-z
"
$RESTORE_ITEM
"
&&
echo
-n
" ... set one first"
test
-z
"
$RESTORE_ITEMINFO
"
||
echo
-n
" (
$RESTORE_ITEMINFO
)"
test
-z
"
$RESTORE_ITEMINFO
"
||
echo
-n
" (
$RESTORE_ITEMINFO
)"
echo
echo
echo
-n
" F - what to restore :
$
RESTORE_FILTER
"
echo
-n
" F - what to restore :
$
(
color cmd
;
echo
-n
$RESTORE_FILTER
;
color reset
)
"
test
-z
"
$RESTORE_FILTER
"
&&
echo
-n
"(no filter = restore all files)"
test
-z
"
$RESTORE_FILTER
"
&&
echo
-n
"(no filter = restore all files)"
echo
echo
echo
echo
echo
" M - mount backup"
# echo " C - show file changes"
# echo " C - show file changes"
#
echo " S - search file"
echo
" S - search file
s
"
# echo " V - verify"
# echo " V - verify"
# echo
# echo
echo
" R - start restore with
$STORAGE_BIN
"
echo
" R - start restore with
$STORAGE_BIN
"
...
@@ -266,6 +272,8 @@ function doRestore(){
...
@@ -266,6 +272,8 @@ function doRestore(){
echo
"(not set)"
echo
"(not set)"
fi
fi
echo
echo
echo
"---------- Other:"
echo
echo
" B - Bash (Shell)"
echo
" B - Bash (Shell)"
echo
" X - exit"
echo
" X - exit"
echo
echo
...
...
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