{
  "id": 23007204,
  "title": "I added a restore test to my Supabase backups. It showed two triggers I'd never backed up.",
  "url": "https://urgent.news/2026/12/01/i-added-a-restore-test-to-my-supabase-backups-it-showed-two-triggers",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T20:31:52.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/kushoevskiv/i-added-a-restore-test-to-my-supabase-backups-it-showed-two-triggers-id-never-backed-up-3nlj"
  },
  "original_language": null,
  "account": "The author added a restore test to their Supabase backups, which revealed two triggers they had previously overlooked. Initially, they only tested their backup by comparing row counts between the dump and the live database, but this did not confirm that the backup could be successfully restored. To address this, they created a workflow that restores the backup weekly into an empty Postgres database. This process uncovered important details about the Supabase backup format and the need for certain tables and functions to be restored in a specific order. Specifically, the two triggers responsible for creating profiles during user sign-ups were missing from their initial backup. After adding the backup of these trigger definitions, the restore test confirmed that all elements, including tables, functions, triggers, and row counts, matched between the backup and the restored database. The workflow is designed to run on GitHub Actions, requiring only two secrets for setup, and serves as a free tool for anyone looking to verify their Supabase database backups.",
  "summary": "I kept telling people to test their backups, so it felt a bit hypocritical that I'd never restored mine. A few weeks ago I wrote about opening my Supabase backup for the first time . I counted the rows inside the dump and compared them with the live database. That proved the file wasn't empty. It didn't prove I could actually restore it. So I made the backup workflow restore itself, every week,…",
  "summary_source": "publisher",
  "key_points": [
    "Author added restore test to Supabase backups",
    "Two triggers overlooked in initial backup",
    "Workflow confirms full backup restoration"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}