I backup to disk once each night. The files are named blah.1.tar .... blah.6.tar. I have a check to make sure that they are no smaller than 5GB. I would like to make sure that they are no older than a week. vfs.file.time returns the seconds since the epoch of the mtime. That's great but I need to now what is the value of the same counter now. If the difference is > 604800 the file is too old and someone needs to know.
I thought about running the test just once a week but I would like to know that the backup in the wee hours of the morning failed that morning. I don't know how to set the trigger to run say at 8AM Monday morning. Having the alert trigger for Monday on Wednesday just because it is 604800 seconds since the last check, means we have likely missed 3 days of backups.
Any suggestions?
I thought about running the test just once a week but I would like to know that the backup in the wee hours of the morning failed that morning. I don't know how to set the trigger to run say at 8AM Monday morning. Having the alert trigger for Monday on Wednesday just because it is 604800 seconds since the last check, means we have likely missed 3 days of backups.
Any suggestions?
Comment