Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ViralHostRangeDB
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
hub
ViralHostRangeDB
Commits
5de21e17
Commit
5de21e17
authored
2 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
only one per day is not a daily, the one done at 00h
parent
8e5b85c6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/viralhostrange/resources/dumpdata.sh
+11
-7
11 additions, 7 deletions
src/viralhostrange/resources/dumpdata.sh
with
11 additions
and
7 deletions
src/viralhostrange/resources/dumpdata.sh
+
11
−
7
View file @
5de21e17
...
...
@@ -8,14 +8,18 @@ echo "Starting dump at $(date)"
export
DUMPS_DIR
=
/code/persistent_volume/dumps
if
[
$(
date
+
"%d"
)
==
"01"
]
;
then
SUFFIX
=
monthly
if
[
$(
date
+
"%H"
)
==
"00"
]
;
then
if
[
$(
date
+
"%d"
)
==
"01"
]
;
then
SUFFIX
=
monthly
else
if
[
$(
date
+
"%u"
)
==
"5"
]
;
then
SUFFIX
=
weekly
else
SUFFIX
=
daily
fi
fi
else
if
[
$(
date
+
"%u"
)
==
"5"
]
;
then
SUFFIX
=
weekly
else
SUFFIX
=
daily
fi
SUFFIX
=
daily
fi
echo
"DUMPS_DIR is
$DUMPS_DIR
"
...
...
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