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
288ac3d6
"docs/80_Build.md" did not exist on "1884544c1e237a4fc8fe5c24631f66149368d9e5"
Commit
288ac3d6
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
save space: do not log transfer twice
parent
2a47da88
Branches
Branches containing commit
No related tags found
1 merge request
!32
5046 finetune restic params
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backup.sh
+5
-5
5 additions, 5 deletions
backup.sh
with
5 additions
and
5 deletions
backup.sh
+
5
−
5
View file @
288ac3d6
...
...
@@ -179,7 +179,8 @@ EOFbackupinfo
cat
"
$STORAGEFILE
"
>>
"
$JOB_LOGFILE
"
echo
"INFO:
$(
date
)
- Sending data to storage...
${
DIR_SELF
}
/transfer.sh
$JOBDEF_TYPE
"
|
tee
-a
"
$JOB_LOGFILE
"
touch
"
${
JOB_DONEFILE
}
.02.STARTTRANSFER"
"
${
DIR_SELF
}
"
/transfer.sh
$JOBDEF_TYPE
"
$JOBDEF_AUTO
"
2>&1 |
tee
-a
"
$JOB_LOGFILE
"
# "${DIR_SELF}"/transfer.sh $JOBDEF_TYPE "$JOBDEF_AUTO" 2>&1 | tee -a "$JOB_LOGFILE"
"
${
DIR_SELF
}
"
/transfer.sh
$JOBDEF_TYPE
"
$JOBDEF_AUTO
"
2>&1
rcTransfer
=
$?
else
...
...
@@ -193,10 +194,6 @@ EOFbackupinfo
touch
"
${
JOB_DONEFILE
}
.03.DONE"
echo
echo
"log for this executed job is"
ls
-l
"
$JOB_LOGFILE
"
echo
echo
"INFO:
$(
date
)
- compress older logs"
echo
find
"
${
DIR_LOGS
}
"
-name
"*.log"
-mtime
+2
-print
-exec
gzip
{}
\;
find
"
${
DIR_LOGS
}
"
-name
"*.log"
-mtime
+2
-print
-exec
gzip
{}
\;
...
...
@@ -209,6 +206,9 @@ EOFbackupinfo
echo
STATUS
$0
exit
with final returncode
rc
=
$rcBackup
|
tee
-a
"
$JOB_LOGFILE
"
echo
echo
"log for this executed job is"
ls
-l
"
$JOB_LOGFILE
"
echo
else
echo
"Nothing to do."
...
...
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