Urgent.News

What's breaking now, across hundreds of outlets.

Tech

I added a restore test to my Supabase backups. It showed two triggers I'd never backed up.

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,…

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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

How to Convert PDF to Word Online for Free — Without Uploading It Anywhere

How to Convert PDF to Word Online for Free — Without Uploading It Anywhere You need to edit a PDF. Not annotate it, not sign it — actually change the words.

  • Open a PDF to Word tool on https://pdfwordtools.pages.dev/pdf-to-word
  • Drop text-based PDF file into tool to convert locally
  • Download instant .docx file ready for editing

ArgumentException: Atlas "foo" (2048x2048) can't fit sprite "texture2" (3840x1080)

ArgumentException: Atlas "foo" (2048x2048) can't fit sprite "texture2" (3840x1080) The exception carries both numbers you need, and most people read neither.

  • Atlas 'foo' (2048x2048) cannot accommodate sprite 'texture2' (3840x1080)
  • Sprite's width of 3840 pixels exceeds atlas's width limit of 2048 pixels
  • Increasing Max Texture Size to 4096 pixels resolves the ArgumentException

Meta Offers $299 Muse Charm Device via Muse App

Meta began offering its new pocket-sized artificial intelligence device, Muse Charm, in the United States on Tuesday (Dec. 1). Alexandr Wang, chief AI officer at Meta, announced in a Tuesday post on X that Charm can be ordered exclusively via Meta’s personal AI agent, Muse. Muse Charm is available only in the U.S., to customers […]

More from Tuesday, 1 December 2026 →