Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iml Backup Server
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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 Server
Commits
144aaa67
Commit
144aaa67
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://git-repo.iml.unibe.ch/iml-open-source/iml-backup-server
parents
e0311743
f678b9e6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backup-status.sh
+1
-1
1 addition, 1 deletion
backup-status.sh
storage_helper.sh
+2
-0
2 additions, 0 deletions
storage_helper.sh
with
3 additions
and
1 deletion
backup-status.sh
+
1
−
1
View file @
144aaa67
...
@@ -141,7 +141,7 @@ do
...
@@ -141,7 +141,7 @@ do
# echo Age: $iAge s
# echo Age: $iAge s
if
[
$iDays
-lt
0
]
;
then
if
[
$iDays
-lt
0
]
;
then
color error
color error
echo
"ERROR: Outdated backup was found! You can delete data for
$myserver
."
echo
"ERROR: Outdated backup was found! You can delete data for
$myserver
.
rc=1
"
color reset
color reset
iErrors
=
$iErrors
+1
iErrors
=
$iErrors
+1
fi
fi
...
...
This diff is collapsed.
Click to expand it.
storage_helper.sh
+
2
−
0
View file @
144aaa67
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
# 2021-06-21 hahn use single status file; added backup size
# 2021-06-21 hahn use single status file; added backup size
# 2021-01-22 hahn show inactive backups in status page; colored lines by status
# 2021-01-22 hahn show inactive backups in status page; colored lines by status
# 2021-11-12 hahn backup status: add handling for backup exitcode
# 2021-11-12 hahn backup status: add handling for backup exitcode
# 2022-07-06 hahn backup status: show clear message on not started/ deleted backups
# ======================================================================
# ======================================================================
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
...
@@ -171,6 +172,7 @@
...
@@ -171,6 +172,7 @@
function
_getBackupsize
(){
function
_getBackupsize
(){
local
size
=
local
size
=
test
-r
"
$sStatusDir
/
${
sBackupClient
}
"
&&
.
"
$sStatusDir
/
${
sBackupClient
}
"
test
-r
"
$sStatusDir
/
${
sBackupClient
}
"
&&
.
"
$sStatusDir
/
${
sBackupClient
}
"
test
-z
"
$size
"
&&
echo
"[ no metadata: not started yet or deleted ]"
echo
$size
echo
$size
}
}
...
...
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