Our Thinking / Field Notes / The Guide

STEP-BY-STEP GUIDANCE / BACKUP MONITORING AND ALERTING

Why Backup Failures Go Unnoticed and How to Set Useful Alerts

A failure email can't warn you about a backup that never ran. Here is how to alert on silence as well as errors, so a stopped job is noticed in hours rather than at restore time.

Start here

Do not rely on failure emails alone, because a job that never starts sends nothing. Use three layers. First, switch on the backup product's own warning and error emails, sent to a shared mailbox that more than one person reads. Second, add an independent check that alerts when no successful backup has been reported within the expected window. Third, restore a few real files on a regular schedule. Then test the alert path before you trust it.

Why backup failures slip past you

Most small-business backup setups are built to tell you when a job runs and fails. The more dangerous case is the job that doesn't run at all. If the scheduler is stopped, the agent has been removed, the server was off at the scheduled time or a service account password has expired, there may be no job to fail and so no failure email. The mailbox stays quiet and quiet looks like good news.

Other causes are duller but just as common: alerts sent to someone who has since left, an email relay that was changed after the alert was set up, warnings that people learned to ignore, and a daily success email that nobody opens. A report landing in a mailbox no one reads is a very tidy way of keeping a secret.

There is a fourth gap that alerts can't close. A job can succeed every night and still not protect what you care about, because a new server, shared folder or mailbox was never added to it. That is why this article ends with a restore check as well as alerts.

Before you begin

This works for most backup tools, so the examples are deliberately mixed. Windows Server Backup and Veeam Backup & Replication show the built-in route. A generic heartbeat check shows how to cover products with weak or no email alerting, such as some NAS devices and script-based jobs.

  • Administrator access to the backup software or the server it runs on.
  • A shared mailbox or distribution list for backup alerts, so the alert does not depend on one person's inbox or holiday.
  • A list of what must be backed up and how often each job is meant to run.
  • One named person who is expected to act when an alert arrives.

Decide what a healthy backup looks like

Alerts are only as good as the definition behind them. For each system, write down how often a new restore point should appear and how old the newest good one is allowed to get before someone must act. A restore point is simply a recoverable copy of your data as it was at a particular time.

Take a fictional firm, Harbour Lane Accountants, with a file server backed up nightly. If the job starts at 22:00 and normally finishes by 01:00, a sensible rule is that a fresh restore point must exist by 07:00 every working day. If it does not, someone is told. That rule catches a failed job, a job that never started and a job that hung, which is more than a failure email can do. The exact margin is a judgement for your business, based on how much data you can afford to lose and how long your jobs normally take.

  1. List each system or data set that matters, such as the file server, the accounts database and Microsoft 365 mailboxes.
  2. Note the schedule and the usual run time for each.
  3. Set an alert threshold of the schedule plus a margin for slow nights, and write down who responds.

Check what your backups are reporting right now

Before changing any alerts, find out whether anything is already wrong. This is read-only. On a server using Windows Server Backup, Microsoft documents Get-WBSummary as the cmdlet that returns the history of backup operations, including the next scheduled backup, the last backup and the last successful backup. You need to be in the Administrators or Backup Operators group.

Compare the last successful backup time with the current date and with your threshold. If the last success is older than your rule allows, treat that as a live problem and investigate that job before you spend time on alert tuning.

  1. Open PowerShell as an administrator on the server that runs Windows Server Backup.
  2. Run the command below. It only reads backup history and changes nothing. Look at the last backup and last successful backup details and compare them with today's date.
    powershell
    Get-WBSummary | Format-List *
  3. For the detail behind a failure, open Event Viewer and browse to Applications and Services Logs, then Microsoft, then Windows, then Backup, then Operational. Check the entries around the time of the last failed or missing run. Event numbers have differed between sources and Windows versions, so read the message text rather than relying on a number.
  4. If you use another product, open its job list and compare each job's last successful run with your threshold. Pay attention to jobs that show an old date rather than a red error, because those are the ones that went quiet.

Switch on the product's own alerts

The first layer is the backup software's email alerting. Veeam Backup & Replication is a useful example because it separates the mail settings (set once for the backup server) from the per-job choices about which results send a message. Labels and page layout differ between versions and job types, so follow Veeam's Help Center page for your version if something looks different.

Changing notification settings affects only who is told. It does not start, stop or alter the backup itself. To undo it, untick the same options.

  1. In the Veeam console, open the main menu, choose Options and go to the E-mail Settings tab. Tick Enable e-mail notifications and enter your mail server details. Veeam's documentation describes SMTP (the standard protocol for sending email) with basic authentication, plus OAuth 2.0 for Microsoft 365 or Gmail. Use the shared alerts mailbox as the recipient.
  2. Click Test Message and check that the email arrives in the shared mailbox. If it does not, fix delivery before doing anything else, because every later alert depends on it.
  3. Open each job, go to its advanced settings and find the Notifications tab. Select Send email notifications to the following recipients, then choose Notify on warning and Notify on error. Treat warnings as real alerts, since a job that completes with warnings may have skipped some of what you wanted.
  4. If a job retries after a failure, tick Suppress notifications until the last retry so you receive one email about the final result rather than a string of intermediate ones.
  5. Be selective with Notify on success. A success message every night is easy to tune out, and the next layer does the same job more reliably. If you do want it, send it to a reporting mailbox rather than the one people watch for faults. Note that where the same address appears in both the global and job settings, Veeam sends the job notification only.

Add an alert for silence

Product alerts depend on the product still running. A heartbeat check removes that dependency. The idea is a dead man's switch: after each successful backup, the job sends a small web request to a monitoring service. The service expects that request on a schedule, and raises an alert when it does not arrive. Silence becomes the signal.

Healthchecks.io is one service that works this way. Each check has a period (how often a ping is expected) and a grace time (how long to wait before alerting). A check becomes Late once the period passes without a ping, and Down once the grace time has also elapsed. Down is when the alert goes out through the integrations you set up, such as email. Set the grace time longer than the job normally takes to run.

The command below is for a Linux host or NAS that runs the backup from a script. It sends the ping only if the script exits successfully, so a failed run stays silent and triggers the alert. It runs in the scheduler on the backup host, adds one outbound web request after each successful run and sends no backup data. To roll back, remove the ping part of the line. The ping URL acts like a password for that check, so keep it out of shared documents. If your backup tool can run a command after a successful job, use the same idea there. Make sure the script's exit status truthfully reflects success, otherwise the ping will report health that isn't real.

  1. Create a check in the monitoring service. Set the period to match the job's schedule and the grace time to cover a slow night. Add your shared alerts mailbox as an integration. Copy the check's ping URL.
  2. Edit the schedule entry for the backup so the ping runs only after the backup succeeds. In the example, replace YOUR_BACKUP_SCRIPT with the path to your script and YOUR_PING_URL with the URL from the service.
    bash
    15 22 * * * YOUR_BACKUP_SCRIPT && curl -fsS -m 10 --retry 5 -o /dev/null YOUR_PING_URL
  3. Run the job once and confirm the check in the service shows a recent ping and a healthy state.

Test the alerts without breaking a live job

An alert you have never seen fire is a guess. You can test the path without sabotaging a production backup, which is the one thing you should avoid. Use the test message for the email route and a throwaway check for the silence route. Waiting for a check to go Late and then Down takes as long as the period and grace time you set, so use short values on the test check and go and do something else for a few minutes.

  1. Send the product's test email again and confirm that someone other than the person who configured it can see it in the shared mailbox.
  2. In the monitoring service, create a temporary check with a short period and grace time, attach the same email integration and never ping it.
  3. Wait for the check to move from Late to Down and confirm the alert email arrives in the shared mailbox. Then delete the temporary check so it doesn't clutter your list.
  4. Agree who picks up an alert and what they do first. The first action is usually to open the job, read the last result and decide whether the data is currently unprotected.

Confirm it works and keep it honest

You have a working setup when a test alert reaches a shared mailbox, each important job has an owner, and an overdue job raises an alert even when no failure message was sent.

Alerts tell you a job ran. They don't tell you the data is usable. The NCSC's guidance for small organisations says that once you have a backup you should know how to restore it and check that it contains all your important data, and the ICO's advice to small organisations says to check your backup so you don't find out it hasn't worked when you need it most. Neither sets a frequency, so pick one you will actually keep to, such as restoring a handful of real files to a scratch location every month. Do it as well whenever a new server, shared folder or mailbox is added, so that coverage keeps pace with the business.

If it doesn't work

These are the usual blockers.

  • The test email never arrives: check the mail server address, port and authentication, then look in junk and any mailbox rules. Delivery problems are far more common than product faults.
  • Too many emails: use the retry suppression option, send success reports to a separate reporting mailbox and keep the main mailbox for warnings and errors only.
  • The heartbeat check goes Down even though the backup succeeded: the grace time is probably shorter than the job's run time, or the schedule and the service's timezone setting disagree. Healthchecks documents a timezone mismatch as the typical cause when pings seem consistently early or late.
  • Alerts arrive but nobody acts: name an owner and a deputy. An alert without an owner is just a notification.
  • The product has no email alerting at all: rely on the heartbeat approach, or ask your IT support provider how that product can report job results.
Technical terms explained
dead man's switch
A check that stays quiet while it keeps receiving an expected signal and raises an alert when the signal stops.
grace time
Extra waiting time after an expected ping is overdue, before a heartbeat service alerts. It absorbs normal variation in how long a job takes.
restore point
A recoverable copy of your data as it was at a particular time. Backups create a series of these, and the newest good one shows how much work you could lose.
SMTP
Simple Mail Transfer Protocol, the standard way a system sends email to a mail server. Backup software uses it to send alerts.

Sources and further reading

KEEP THE CONVERSATION GOING

Not sure who hears about a failed backup?

If you would like help working out what your backups report, where the alerts go and how quickly a stopped job would be noticed, tell us what you run and we will take it from there.

Talk to us about your backups