mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Add ressources monitoring and fix backup status check
This commit is contained in:
parent
76cb401c53
commit
27c912a613
2 changed files with 8 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ ONGOING_FILE="/backups/backup-ongoing"
|
|||
|
||||
if [ -f "$ONGOING_FILE" ]
|
||||
then
|
||||
if test `find "$ONGOING_FILE" -mmin +1`
|
||||
if test `find "$ONGOING_FILE" -mmin +180`
|
||||
then
|
||||
LAST_MODIFICATION_HOURS=`expr "$(($(date +%s) - $(date +%s -r $ONGOING_FILE)))" / 3600`
|
||||
echo "Backup not finished after more than $LAST_MODIFICATION_HOURS hours"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue