Skip to content

Send SQLite backup alerts to Discord

Follow a backup problem in Discord with a firing message and a recovery that share one incident ID.

Create a channel webhook

  • Create the channel webhook

    In Discord Server Settings, open Integrations and choose Webhooks. Create a webhook, name it Litebackup and select the channel. You need permission to manage webhooks there.

  • Connect Litebackup

    As an admin, open Alerts and choose Add destination. Select Discord and name the destination. Copy the complete channel webhook URL and paste it into HTTPS URL. Choose Add destination to save it.

Discord selected with the destination named for the backups channel. Discord selected with the destination named for the backups channel.

Find the firing and recovery messages

On the Alerts page, choose Send test alert in the destination’s controls. The test can page a person. Check that both the trigger and recovery were accepted.

Check the channel for the two test messages and match their incident IDs. Litebackup asks Discord to confirm creation of each message using wait=true and turns off automatic mentions.

Check a missing or repeated message

If Discord rejects the request, check that the webhook still exists in Server Settings and that Litebackup has its current URL. If a response is lost after Discord posts, a retry can post the same event again. Use the incident ID to recognize it. Discord webhook requests.

Enable alerts

Check how many alerts are firing before choosing Enable delivery. Each server sends its open alerts immediately, then reports new alerts and recoveries for all enabled thresholds.

Add the destination from the server CLI

As an alternative to the console form, run this on the Litebackup server and enter the credentials at the prompt.

# Add the destination from the Litebackup server host.
litebackup server alert-destination add \
    --provider discord \
    --name "Discord"

Install

Install Litebackup and back up a SQLite database to start monitoring it. Choose another paging service or chat channel in the alert integrations guide.