Skip to content
Snippets Groups Projects
Commit 96eac592 authored by Florent Thiery's avatar Florent Thiery
Browse files

display age of backups

parent a1afebcf
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ def check_local_backup(path):
now = datetime.now()
diff_seconds = (now - d).total_seconds()
if diff_seconds > 48*3600:
print('Backup %s is older than 48h' % backup_folder)
print('Backup %s is older than 48h (%sh)' % (backup_folder, diff_seconds/3600))
all_ok = False
else:
print('Backup %s is fine' % backup_folder)
......
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