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
3f138368
Commit
3f138368
authored
4 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add support for db-dirarchive
parent
e3dacf22
Branches
Branches containing commit
No related tags found
1 merge request
!4
add support dir-dbarchive
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
jobhelper.sh
+1
-0
1 addition, 0 deletions
jobhelper.sh
jobs/dirs.job.dist
+4
-1
4 additions, 1 deletion
jobs/dirs.job.dist
transfer.sh
+4
-2
4 additions, 2 deletions
transfer.sh
with
9 additions
and
3 deletions
jobhelper.sh
+
1
−
0
View file @
3f138368
...
@@ -122,6 +122,7 @@ function j_getDirs2Backup(){
...
@@ -122,6 +122,7 @@ function j_getDirs2Backup(){
STORAGE_SAMBASHARES
=
`
_j_getvar
${
STORAGEFILE
}
"sambashares"
`
STORAGE_SAMBASHARES
=
`
_j_getvar
${
STORAGEFILE
}
"sambashares"
`
_j_getvar
${
DIRFILE
}
dir-localdumps
_j_getvar
${
DIRFILE
}
dir-localdumps
_j_getvar
${
DIRFILE
}
dir-dbarchive
_j_getvar
${
DIRFILE
}
include
_j_getvar
${
DIRFILE
}
include
# get dirs of filesets, i.e.
# get dirs of filesets, i.e.
...
...
This diff is collapsed.
Click to expand it.
jobs/dirs.job.dist
+
4
−
1
View file @
3f138368
...
@@ -21,9 +21,12 @@
...
@@ -21,9 +21,12 @@
# each datbase service has its own subdir there
# each datbase service has its own subdir there
# this entry is mapped to BACKUP_TARGETDIR in "localdump.sh"
# this entry is mapped to BACKUP_TARGETDIR in "localdump.sh"
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
dir-localdumps = /var/
_unibe_iml
/backup
dir-localdumps = /var/
localdumps
/backup
keep-days = 7
keep-days = 7
# archive databases (to keep deleted schemes or databases that
# are not backupped anymore; couchdb2 feature)
dir-dbarchive = /var/localdumps/archive
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# directory list to transfer
# directory list to transfer
...
...
This diff is collapsed.
Click to expand it.
transfer.sh
+
4
−
2
View file @
3f138368
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
PASSPHRASE
=
`
_j_getvar
${
STORAGEFILE
}
"passphrase"
`
PASSPHRASE
=
`
_j_getvar
${
STORAGEFILE
}
"passphrase"
`
STORAGE_REGISTER
=
`
_j_getvar
${
STORAGEFILE
}
"storage-register"
`
STORAGE_REGISTER
=
`
_j_getvar
${
STORAGEFILE
}
"storage-register"
`
typeset
-i
TIMER_TRANSFER_START
=
`
date
+%s
`
# check
# check
if
[
-z
"
$STORAGE_BIN
"
]
;
then
if
[
-z
"
$STORAGE_BIN
"
]
;
then
...
@@ -221,7 +222,7 @@
...
@@ -221,7 +222,7 @@
h2
"
`
date
`
PRE transfer tasks"
h2
"
`
date
`
PRE transfer tasks"
t_backupDoPreTasks
t_backupDoPreTasks
echo
# --------------------------------------------------------------------------------
# --------------------------------------------------------------------------------
# ----- START BACKUPS
# ----- START BACKUPS
...
@@ -344,7 +345,8 @@
...
@@ -344,7 +345,8 @@
fi
fi
color reset
color reset
echo
|
tee
-a
$transferlog
echo
|
tee
-a
$transferlog
echo
`
date
`
TRANSFER DONE |
tee
-a
$transferlog
typeset
-i
TIMER_TRANSFER
=
`
date
+%s
`
-
$TIMER_TRANSFER_START
echo
`
date
`
TRANSFER DONE
in
$TIMER_TRANSFER
sec |
tee
-a
$transferlog
ls
-l
$transferlog
ls
-l
$transferlog
exit
$rc
exit
$rc
...
...
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