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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
iml-backup
Merge requests
!129
Db Profiles
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Db Profiles
db-detector
into
master
Overview
0
Commits
63
Pipelines
0
Changes
1
Merged
Db Profiles
Hahn Axel (hahn)
requested to merge
db-detector
into
master
Feb 20, 2024
Overview
0
Commits
63
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
b191c47d
Prev
Next
Show latest version
1 file
+
7
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b191c47d
detect non existing backups
· b191c47d
Hahn Axel (hahn)
authored
Mar 12, 2024
localdump.sh
+
7
−
1
View file @ b191c47d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -183,7 +183,7 @@
# restore: show profiles from that exist backups
# global string BACKUP_BASEDIR base directory of all backups
function
listBackupedServices
(){
find
"
${
BACKUP_BASEDIR
}
"
-mindepth
1
-maxdepth
1
-type
d |
sed
"s#^
${
BACKUP_BASEDIR
}
/##g"
|
sort
find
"
${
BACKUP_BASEDIR
}
"
-mindepth
1
-maxdepth
1
-type
d |
sed
"s#^
${
BACKUP_BASEDIR
}
/##g"
|
sort
|
grep
"^[a-z]"
}
# ------------------------------------------------------------
@@ -449,6 +449,12 @@
restore
)
h1
"RESTORE DATABASE"
if
!
listBackupedServices
;
then
color.echo error
"ERROR: No database dump was found in [
${
BACKUP_BASEDIR
}
]."
exit
1
fi
if
[
-z
$1
]
||
[
!
-f
"
$1
"
]
;
then
parService
=
"
$1
"
Loading