Use SANAD Backup

Notifications

Send backup results to webhooks, Slack and Microsoft Teams, for every job or for one job, and verify signed webhook calls.

SANAD Backup can tell you when backups start, succeed, partly fail or fail. It sends these notifications to channels: a Webhook (any HTTP or HTTPS endpoint; use HTTPS), a Slack incoming webhook or a Microsoft Teams incoming webhook.

Where channels apply

Scope Where to manage it Receives
Deployment-wide Notifications, in the Monitoring section of the sidebar The selected events of every job
One job Notifications on the job's card on Backup Jobs The selected events of that job only, in addition to the deployment-wide channels

Add a channel

  1. Open the deployment-wide Notifications page, or a job's Job notifications page.
  2. Choose Add channel.
  3. Choose the Channel type — Webhook, Slack or Teams. The type cannot be changed later.
  4. Enter a Name, such as Ops alerts, and the fields of the type (below).
  5. Under Events, tick the events that should notify this channel. Ticking none means all events.
  6. Keep Enabled ticked and choose Save channel.

Webhook

Field What to enter
Webhook URL The address SANAD Backup calls, for example https://example.com/hooks/sanad.
HTTP method POST or PUT.
HMAC signing secret (optional) A shared secret. SANAD Backup then signs every call so your endpoint can check that it came from SANAD Backup. The secret is stored encrypted; leave the field blank later to keep it.

Slack

Field What to enter
Slack incoming webhook URL The URL of an app in your Slack workspace that uses Incoming Webhooks.
Channel mention on failure (optional) A mention added to failure messages, such as <!channel>.

Microsoft Teams

Field What to enter
Teams incoming webhook URL The URL of an Incoming Webhook connector in the Teams channel.
User mention on failure (optional) Mention text added to failure messages.

Saved Slack and Teams webhook URLs and the HMAC signing secret are not shown again. To keep them when you edit a channel, leave those fields blank. The Webhook URL of a Webhook channel stays visible and can be edited.

Events

Event Sent when
backup.started A backup run starts.
backup.completed A backup run succeeded.
backup.partial Some databases or destinations of a run failed.
backup.failed A run failed or was cancelled.
destination.reconnect_required A Google Drive destination's connection stopped working and needs Reconnect. Sent once each time it happens.

These are the events SANAD Backup sends today; the Events list may show other names, which are not sent yet. Failure and partial-failure messages name the destinations that failed and why. A run that is retried reports the attempt number.

Test, edit and delete channels

The channel list shows each channel's name, type, status, events and when it was last changed.

  • Test sends a test notification now — the event test.notification, with the facts channel, type and sentAt — and shows the result under the row. It is available for enabled channels.
  • Edit opens the channel. Untick Enabled to pause a channel without deleting it.
  • Delete, then Confirm delete, removes the channel.

When a delivery fails, SANAD Backup tries it twice more within about a minute, then records it as failed.

Webhook calls and signatures

SANAD Backup sends a JSON body with the content type application/json and these fields:

Field Content
event The event name, such as backup.failed.
subject A one-line summary.
body The message text.
deepLinkUrl Currently always null.
isFailure true for failed, cancelled and partly failed runs, and for reconnect alerts.
facts Name–value pairs. For backup results they include jobId, jobName, status, sizeBytes, durationSeconds, successCount, failCount and attempt.

Every call carries X-Sanad-Event; calls from a channel with an HMAC signing secret also carry X-Sanad-Signature:

  • X-Sanad-Event — the event name.
  • X-Sanad-Signature — only when the channel has an HMAC signing secret: sha256= followed by the HMAC-SHA256 of the raw request body, keyed with the secret, as lowercase hexadecimal.

To check a call, compute the HMAC-SHA256 of the exact bytes you received, using your secret, and compare it with the header value in constant time. Reject calls whose signature does not match.

Outgoing email

Email is not one of the channel types. The outgoing mail server is set on Settings → Email Notifications → Open email settings: host, port, security mode, sender and sign-in (a user name and password, or Gmail). Send test email there checks it. SANAD Backup uses these settings to email invitation links (Invite a user); without them an invitation is created with a link to copy and is not emailed.