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
1997a289
Commit
1997a289
authored
4 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch 'version-2' into 'master'
Version 2 See merge request
!9
parents
4baaf7fa
7f623e31
No related branches found
No related tags found
1 merge request
!9
Version 2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
localdump.sh
+2
-2
2 additions, 2 deletions
localdump.sh
transfer.sh
+1
-0
1 addition, 0 deletions
transfer.sh
with
3 additions
and
2 deletions
localdump.sh
+
2
−
2
View file @
1997a289
...
...
@@ -68,7 +68,7 @@
# cleanup a backup dir: remove old files and delete empty dirs
function
cleanup_backup_target
(){
echo
h
2
"CLEANUP
${
BACKUP_TARGETDIR
}
older
$BACKUP_KEEP_DAYS
days ..."
h
3
"CLEANUP
${
BACKUP_TARGETDIR
}
older
$BACKUP_KEEP_DAYS
days ..."
if
[
-d
"
${
BACKUP_TARGETDIR
}
"
]
;
then
echo
find
"
${
BACKUP_TARGETDIR
}
"
-mtime
+
$BACKUP_KEEP_DAYS
-delete
-print
color cmd
...
...
@@ -138,7 +138,7 @@
function
show_info_backup_target
(){
echo
h
2
"INFO about backup target
${
BACKUP_TARGETDIR
}
"
h
3
"INFO about backup target
${
BACKUP_TARGETDIR
}
"
if
[
-d
"
${
BACKUP_TARGETDIR
}
"
]
;
then
echo
-n
"used space: "
...
...
This diff is collapsed.
Click to expand it.
transfer.sh
+
1
−
0
View file @
1997a289
...
...
@@ -41,6 +41,7 @@
typeset
-i
rc
=
0
if
[
!
-r
"
${
DIRFILE
}
"
-o
!
-r
"
${
STORAGEFILE
}
"
]
;
then
echo
"SKIP backup of local files - one of the files is not readable (no error):
${
DIRFILE
}
|
${
STORAGEFILE
}
"
exit
0
fi
STORAGE_BIN
=
`
_j_getvar
${
STORAGEFILE
}
"bin"
`
...
...
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