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
71fe09ac
Commit
71fe09ac
authored
4 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
localdump - beautify output
parent
7f623e31
No related branches found
No related tags found
1 merge request
!10
localdump - beautify output
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
localdump.sh
+1
-8
1 addition, 8 deletions
localdump.sh
with
1 addition
and
8 deletions
localdump.sh
+
1
−
8
View file @
71fe09ac
...
@@ -67,7 +67,6 @@
...
@@ -67,7 +67,6 @@
# ------------------------------------------------------------
# ------------------------------------------------------------
# cleanup a backup dir: remove old files and delete empty dirs
# cleanup a backup dir: remove old files and delete empty dirs
function
cleanup_backup_target
(){
function
cleanup_backup_target
(){
echo
h3
"CLEANUP
${
BACKUP_TARGETDIR
}
older
$BACKUP_KEEP_DAYS
days ..."
h3
"CLEANUP
${
BACKUP_TARGETDIR
}
older
$BACKUP_KEEP_DAYS
days ..."
if
[
-d
"
${
BACKUP_TARGETDIR
}
"
]
;
then
if
[
-d
"
${
BACKUP_TARGETDIR
}
"
]
;
then
echo
find
"
${
BACKUP_TARGETDIR
}
"
-mtime
+
$BACKUP_KEEP_DAYS
-delete
-print
echo
find
"
${
BACKUP_TARGETDIR
}
"
-mtime
+
$BACKUP_KEEP_DAYS
-delete
-print
...
@@ -137,7 +136,6 @@
...
@@ -137,7 +136,6 @@
# show used space and count of files and dirs
# show used space and count of files and dirs
function
show_info_backup_target
(){
function
show_info_backup_target
(){
echo
h3
"INFO about backup target
${
BACKUP_TARGETDIR
}
"
h3
"INFO about backup target
${
BACKUP_TARGETDIR
}
"
if
[
-d
"
${
BACKUP_TARGETDIR
}
"
]
;
then
if
[
-d
"
${
BACKUP_TARGETDIR
}
"
]
;
then
...
@@ -232,8 +230,7 @@
...
@@ -232,8 +230,7 @@
# . /usr/local/bin/inc_cronfunctions.sh
# . /usr/local/bin/inc_cronfunctions.sh
j_requireUser
"root"
j_requireUser
"root"
echo
h1
`
date
`
IML BACKUP :: LOCALDUMP ::
$*
echo
IML BACKUP ::
$*
echo
Start
`
date
`
echo
Start
`
date
`
echo
echo
...
@@ -295,14 +292,10 @@
...
@@ -295,14 +292,10 @@
# ----- start service specific script
# ----- start service specific script
echo
"--------------------------------------------------------------------------------"
echo
echo
echo
h2
"START SCRIPT FOR
${
SERVICENAME
}
-
$BACKUP_SCRIPT
"
h2
"START SCRIPT FOR
${
SERVICENAME
}
-
$BACKUP_SCRIPT
"
.
$BACKUP_SCRIPT
$mode
.
$BACKUP_SCRIPT
$mode
echo
echo
# ----- post jobs: cleanup
# ----- post jobs: cleanup
cleanup_backup_target
cleanup_backup_target
...
...
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