Documentation Index
Fetch the complete documentation index at: https://docs.dbhost.app/llms.txt
Use this file to discover all available pages before exploring further.
How backups work
DBHost usespg_dump piped through gzip to create compressed SQL backups. Backups run asynchronously. You can trigger them manually, and DBHost also runs a daily automated backup job at 02:00 UTC with 30-day retention in production.
In production, durable backups are stored off-host in S3 and exposed in the dashboard as timestamped .sql.gz files.
Triggering a backup
- Go to your database detail page
- Click Export Data to start a new backup and jump to the backups page
- Or click Backups and use Trigger Backup from there
Viewing backup history
The backups page shows all available backups with:- Filename (timestamp-based:
YYYYMMDD_HHMMSS.sql.gz) - Size (compressed)
- Created at (UTC)
- Actions — Restore, download, or delete via the three-dot menu on each row
Restoring from a backup
Click the three-dot menu on any backup row and choose Restore. Confirm in the dialog that appears. The backup contents will overwrite all data in the current database.Importing a database dump
Use Import to upload apg_dump file from another host (e.g. AWS Lightsail, Heroku, Railway).
- Click Import in the backups page header
- Select a file (
.sql.gz,.sql,.dump, or.backup— max 512 MB) - Click Import and restore and confirm
permission denied for table ... from your app after a restore, run Repair ownership (see API reference or dbhost databases repair-ownership <id>).
Retention
Backups are retained for 30 days in production. Automated cleanup runs as part of the scheduled backup job.Downloading and deleting backups
- Use Download to fetch the exact
.sql.gzfile for local storage or operator restore work. - Use Delete to remove a backup file permanently from backup storage.