Skip to content
Snippets Groups Projects
Commit 5de21e17 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

only one per day is not a daily, the one done at 00h

parent 8e5b85c6
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment