This is a bash implementation of a killswitch, which will monitor some action and raise an alert when the action fails or stops being performed.
This particular implementation runs an hourly backup script, and runs the killswitch daily at 4 AM to raise an alert if backups from the previous 24 hours failed.