engineering··5 min read·WoWSQL Team

Does Supabase Back Up My Database? BaaS Backups Explained

Does Supabase back up your database? Free plans get none. Supabase, Firebase, Neon and WoWSQL backups and PITR compared, plus a tested pg_dump script.

Supabase backs up paid projects only: Pro projects get daily backups kept for 7 days, Team 14 days and Enterprise up to 30, while Free projects get none and Supabase tells free users to export their own. Point-in-time recovery is a paid add-on. WoWSQL works the same way at the base level: Free has no platform backups, Pro and Scale get daily backups kept 7 days, and there is no point-in-time recovery. Whichever backend you use, keep your own scheduled pg_dump as well; the script below is tested end to end, restore included.

Key facts

  • Supabase (backups docs, updated 12 Nov 2026; pricing, read 30 Nov 2026): no automatic backups on Free; daily backups on Pro (7 days), Team (14 days) and Enterprise (up to 30 days). PITR add-on from $100 a month per 7 days of retention, with a worst-case recovery point of about two minutes. Backups don't include Storage objects, and deleting a project deletes its backups.
  • WoWSQL (legal/backups, last updated 22 Oct 2026, re-checked 30 Nov 2026): Free has no platform backups. Pro ($25/month) and Scale ($99/month) get daily backups kept for 7 days. Not point-in-time recovery. Restores are requested from support within the 7-day window and can overwrite newer data. Storage objects, Auth configuration and dashboard settings may not be in the same snapshot.
  • Firebase Firestore (backups docs, updated 18 Nov 2026): scheduled daily or weekly backups with retention up to 14 weeks, Blaze plan only; separate PITR keeps up to 7 days of versions.
  • Neon (pricing, updated 4 Nov 2026): instant restore from a history window of up to 6 hours (or 1 GB of changes) on Free, up to 7 days on Launch and up to 30 days on Scale.
  • Your own copy: pg_dump over the database connection string from the WoWSQL Connect menu, run nightly, checked with pg_restore, and restored into a scratch database once a month.

What each platform actually backs up

Free plan Paid plan Point-in-time recovery How you restore
Supabase None; export with supabase db dump Daily: 7 days (Pro), 14 (Team), up to 30 (Enterprise) Add-on on Pro and up, $100/month per 7 days Dashboard, Database → Backups, or the Management API
Firebase Firestore No scheduled backups (Blaze only) Daily or weekly schedules, retention up to 14 weeks Up to 7 days Restore into a new database
Neon History window up to 6 hours or 1 GB Up to 7 days (Launch), 30 days (Scale) Yes, this is how Neon restores Console: Backup & Restore → Restore from history
WoWSQL None; export yourself Daily, kept 7 days (Pro and Scale) No Ask support, inside the 7-day window

Sources as listed in the key facts; all pages read 30 November 2026.

Where competitors are ahead. If you need to rewind to 14:32 yesterday, WoWSQL can't do that today: Supabase's PITR add-on, Neon's instant restore and Firestore PITR all can. Supabase's Team plan and Firestore schedules also keep backups longer than 7 days, and Neon's restore is self-service in seconds, while a WoWSQL restore goes through support. What WoWSQL gives you is a plain daily safety net on every paid plan at no extra charge, and a standard Postgres connection so your own backups are easy.

What a platform backup does not cover

Read the fine print on any BaaS, because the gaps are similar:

  • Files. Supabase says database backups don't include objects stored through the Storage API. WoWSQL says Storage objects may not be in the same snapshot as Postgres. Back up files separately.
  • Configuration. Auth provider settings, API keys, dashboard switches and secrets live outside your tables. Write them down in your repo (without the secret values).
  • Deleting the project. On Supabase and WoWSQL, deleting a project deletes its backups too. Firestore is the exception: deleting a database doesn't delete its backups.
  • Your mistakes inside the window. A daily backup taken after a bad migration faithfully preserves the bad migration. If you notice on day 8, a 7-day retention can't help.
  • Restores overwrite. Restoring a platform backup replaces the database, so anything written since that backup is gone unless you exported it first.

That's why WoWSQL's backups page ends with "Do not rely on us as your only backup", and why Supabase recommends free projects keep off-site exports.

Recovery point and recovery time in plain words

  • Recovery point (RPO): how much data you can lose. A daily backup means up to about 24 hours. Supabase quotes a worst case of two minutes with PITR.
  • Recovery time (RTO): how long you're down while restoring. Supabase notes the project is inaccessible during a restore and that bigger databases take longer. WoWSQL doesn't publish a restore time; only a paid SLA, if you have one, adds a commitment.

Decide both numbers before you pick a plan. "We can lose a day of data and be down for a few hours" is a valid answer for a side project, not for a payments app.

Do it yourself: a nightly pg_dump you can trust

This works with any Postgres host. On WoWSQL, copy the database connection string from the project's Connect menu.

Step 1: install a matching pg_dump

pg_dump must be at least the same major version as the server. Check with select version(); in the SQL editor, then install that client version (on Ubuntu or Debian, from the PostgreSQL apt repository). A mismatch fails with "server version mismatch".

Step 2: the backup script

#!/usr/bin/env bash
# backup.sh: one pg_dump of your WoWSQL database, verified, checksummed and pruned.
set -euo pipefail

: "${DATABASE_URL:?Set DATABASE_URL to the connection string from the Connect menu}"
BACKUP_DIR="${BACKUP_DIR:-$HOME/wowsql-backups}"
KEEP_DAYS="${KEEP_DAYS:-30}"
SCHEMAS="${SCHEMAS:-public}"          # e.g. "public auth" if your role can read auth

mkdir -p "$BACKUP_DIR"
stamp="$(date -u +%Y%m%dT%H%M%SZ)"
file="$BACKUP_DIR/db-$stamp.dump"

schema_args=()
for s in $SCHEMAS; do schema_args+=(--schema="$s"); done

# Custom format: compressed, and pg_restore can pick single tables out of it
pg_dump "$DATABASE_URL" --format=custom --no-owner --no-privileges \
  "${schema_args[@]}" --file="$file.partial"

# Refuse to keep an archive pg_restore can't read
pg_restore --list "$file.partial" > /dev/null
mv "$file.partial" "$file"
( cd "$BACKUP_DIR" && sha256sum "$(basename "$file")" > "$(basename "$file").sha256" )

# Delete local copies older than KEEP_DAYS
find "$BACKUP_DIR" -name 'db-*.dump*' -mtime +"$KEEP_DAYS" -delete

echo "backup ok: $file ($(du -h "$file" | cut -f1))"

What it does, and why:

  • Custom format (-Fc) is compressed and lets pg_restore restore a single table later.
  • --no-owner --no-privileges makes the file restorable into a database with different role names. The trade-off: grants to the API roles aren't restored, so after a restore you expose tables again in the Table Editor.
  • pg_restore --list reads the archive back before the script accepts it. A truncated file fails here, not on the day you need it.
  • A checksum file lets you prove later that the copy wasn't damaged in storage.
  • SCHEMAS defaults to public, where your tables live. Add auth only if your database role can read it, and test the restore.

Step 3: schedule it

On any always-on Linux box:

# m  h  dom mon dow  command   (02:30 every night, server time)
30 2 * * * DATABASE_URL='postgresql://...' BACKUP_DIR=/srv/wowsql-backups /srv/bin/backup.sh >> /var/log/wowsql-backup.log 2>&1

No server? A scheduled GitHub Actions workflow in a private repository works. Store the connection string and a passphrase as repository secrets and encrypt the dump before it becomes an artifact, because anyone with access to the repo can download artifacts.

name: nightly-db-backup
on:
  schedule:
    - cron: "30 21 * * *"   # 21:30 UTC = 03:00 IST
  workflow_dispatch:

jobs:
  backup:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - name: Install a pg_dump that matches your server's major version
        run: |
          sudo apt-get update
          sudo apt-get install -y postgresql-common
          sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
          sudo apt-get install -y postgresql-client-17
          echo "/usr/lib/postgresql/17/bin" >> "$GITHUB_PATH"
      - name: Dump
        env:
          DATABASE_URL: ${{ secrets.WOWSQL_DATABASE_URL }}
          BACKUP_DIR: ./out
        run: bash ./backup.sh
      - name: Encrypt before it leaves the runner
        env:
          BACKUP_PASSPHRASE: ${{ secrets.BACKUP_PASSPHRASE }}
        run: |
          for f in out/*.dump; do
            gpg --batch --yes --pinentry-mode loopback --symmetric --cipher-algo AES256 \
              --passphrase "$BACKUP_PASSPHRASE" -o "$f.gpg" "$f"
            rm "$f"
          done
      - uses: actions/upload-artifact@v7
        with:
          name: db-backup-${{ github.run_id }}
          path: out/
          retention-days: 30

Change postgresql-client-17 to your server's major version. Artifacts expire, so retention-days: 30 is your retention policy here; copy monthly dumps somewhere longer-lived if you need them.

Step 4: test a restore every month

A backup you've never restored is a hope, not a backup. This script restores the newest dump into an empty scratch database and compares row counts with production:

#!/usr/bin/env bash
# restore-test.sh: restore the newest dump into a scratch database and compare row counts.
set -euo pipefail

: "${DATABASE_URL:?production connection string (read only here)}"
: "${SCRATCH_URL:?an empty scratch database, never production}"
BACKUP_DIR="${BACKUP_DIR:-$HOME/wowsql-backups}"

latest="$(ls -1t "$BACKUP_DIR"/db-*.dump | head -n 1)"
( cd "$BACKUP_DIR" && sha256sum --check --quiet "$(basename "$latest").sha256" )

pg_restore --dbname="$SCRATCH_URL" --no-owner --no-privileges \
  --clean --if-exists --single-transaction --exit-on-error "$latest"

count_rows() {
  psql "$1" -At -c "
    select string_agg(format('%s=%s', t, (xpath('/row/c/text()',
      query_to_xml(format('select count(*) as c from %I.%I', s, t), false, true, '')))[1]::text), ' ' order by t)
    from (select table_schema s, table_name t from information_schema.tables
          where table_schema = 'public' and table_type = 'BASE TABLE') x"
}

prod="$(count_rows "$DATABASE_URL")"
copy="$(count_rows "$SCRATCH_URL")"
echo "production: $prod"
echo "restored:   $copy"
[ "$prod" = "$copy" ] && echo "restore test passed: $latest" || { echo "row counts differ"; exit 1; }

If the scratch database is a plain local Postgres, run this once first. Your tables refer to auth.uid() and the API roles, so a restore into vanilla Postgres fails without them (we hit exactly that error while testing):

-- Run once in a plain local Postgres used as the restore target.
-- Your tables reference the platform's auth.uid() and API roles, so the
-- scratch database needs stand-ins before pg_restore can create them.
do $$ begin
  if not exists (select from pg_roles where rolname = 'anon') then create role anon nologin; end if;
  if not exists (select from pg_roles where rolname = 'authenticated') then create role authenticated nologin; end if;
  if not exists (select from pg_roles where rolname = 'service_role') then create role service_role nologin; end if;
end $$;
create schema if not exists auth;
create or replace function auth.uid() returns uuid language sql stable as $$
  select nullif(current_setting('request.jwt.claims', true)::jsonb ->> 'sub', '')::uuid
$$;

What about the WoWSQL CLI backup command?

The CLI (pip install wowsql-cli, version 1.7.0 on PyPI) has wowsql backup create --output ./backup.sql, which asks the server for a SQL export and saves it on your machine, and wowsql backup restore-file to load one back. It's handy before a risky change. It is not a full backup. We read the code behind it and rebuilt its export locally against a test schema: it writes each public table's columns, NOT NULL, defaults and primary key, then the rows as INSERT statements. In our test it did not carry identity columns, check constraints, foreign keys, Row Level Security or policies, and the file begins each table with DROP TABLE IF EXISTS ... CASCADE, so restoring it replaces those tables. Use pg_dump for anything you'd need in a real recovery.

A backup plan for each stage

Stage Platform backups Your own copies Restore test
Side project on Free None on WoWSQL or Supabase Free Weekly pg_dump, keep 4 Once, so you know it works
Launched app on Pro Daily, 7 days Nightly pg_dump, keep 30 days off-platform Monthly
Revenue or regulated data Daily, plus PITR if you choose a host that offers it Nightly plus a monthly copy kept a year Monthly, timed, written down

If you need sub-hour recovery points today, choose a provider with PITR (Supabase add-on, Neon, or Firestore) or run a replica you control. Be honest with yourself about which row you're in.

Related guides

FAQ

Does Supabase back up my database?

Only on paid plans. Supabase takes daily backups of Pro (kept 7 days), Team (14 days) and Enterprise (up to 30 days) projects. Free projects get no automatic backups, and Supabase recommends exporting them with the CLI db dump command. Point-in-time recovery is a paid add-on.

Does WoWSQL back up my database?

On Pro and Scale, yes: daily backups kept for 7 days, restored by support within that window. The Free plan has no platform backups, so you export your own. WoWSQL does not offer point-in-time recovery.

What is point-in-time recovery in Postgres?

Point-in-time recovery (PITR) restores a database to an exact moment by replaying the write-ahead log on top of a base backup, so you lose seconds or minutes instead of up to a day. Supabase sells it as an add-on, Neon builds restores on it, and Firestore offers up to 7 days of it.

How do I back up a Postgres database myself?

Run pg_dump in custom format against your connection string on a schedule, check each file with pg_restore --list, keep copies outside the provider, and restore into a scratch database every month to prove it works. The script in this guide does all of that.

Are files in storage included in database backups?

Usually not. Supabase says database backups exclude objects stored through its Storage API, and WoWSQL says Storage objects may not be in the same snapshot as Postgres. Back up buckets separately.

What happens to my backups if I delete my project?

On WoWSQL and Supabase, they are deleted with the project and can't be recovered, so download what you need first. Firestore is different: deleting a database does not delete its backups.

Create a free WoWSQL project · Backups policy · Pricing