Skip to content
Snippets Groups Projects
Commit a1230b9b authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

Updated last backup date for odoo

parent 0a64fa75
Branches
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ do
BYTES=$(grep "Bytes:" $file | cut -d ":" -f 2 | tr -d " ")
OBJECTS=$(grep "Objects:" $file | cut -d ":" -f 2 | tr -d " ")
LAST_FILE=$(tail -2 $file | grep gpg)
if [ `date -d "${LAST_FILE:5:19}" +%s` -gt `date -d '7 days ago' +%s` ]
if [ `date -d "${LAST_FILE:5:19}" +%s` -gt `date -d '1 day ago' +%s` ]
then
OUTPUT+="OK: Container: $CONTAINER, Size: $BYTES, # Files: $OBJECTS, Last-Modified: ${LAST_FILE:5:19}\n"
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment