backupd
Restoring

Download a backup

Download a backupd backup decrypted and ready for your engine's restore tool, or encrypted to open with your own age key.

Any member of the workspace can download a backup from its page. Every download is recorded in the audit log.

Download options

ButtonWhat you get
Download or Download decryptedThe dump itself, decrypted and decompressed by backupd, ready for the engine's restore tool. For example production-….pgdump or ….sql.
Download encryptedThe stored file exactly as it is in backupd Storage, compressed with zstd and encrypted with age, for example production-….pgdump.zst.age.

When the backup is encrypted to a key you added, Download encrypted is the main button and the decrypted download is shown as Download decrypted.

Download encrypted gives you a short-lived link that works for five minutes. Start the download again if it expires.

Which one to use

  • Download encrypted when you hold a key that the backup was encrypted to. The file stays encrypted until it reaches your machine. Decrypt it with your key, see Restore without backupd.
  • Download decrypted when the backup was made before you added a key, or when you don't have a key yet. backupd decrypts it with its own key.

A key only opens backups made after you added it. Backups made before then can still be downloaded decrypted from the app.

Restore a decrypted download

The decrypted file is the dump with no compression or encryption. Restore it with the engine's own tool:

PostgreSQL 17+
pg_restore --no-owner --single-transaction -d "$TARGET_URL" production.pgdump
PostgreSQL 9.2 to 16
pg_restore --no-owner -f - production.pgdump | grep -v '^SET transaction_timeout' \
  | psql --single-transaction -v ON_ERROR_STOP=1 "$TARGET_URL"
MySQL / MariaDB
mysql --defaults-extra-file=target.cnf target_db < production.sql
MongoDB
mongorestore --archive=production.archive --uri "$TARGET_URI"
# Full replica-set backups include the oplog: add --oplogReplay.
Convex
npx convex import --replace-all production.zip

On this page