Databases, backups and restores
VPS Manager runs PostgreSQL, MySQL and Redis on your own servers and backs them up to any S3-compatible bucket you own.
Create a database
- Open the Databases tab and click New database.
- Enter a Name (lowercase letters, digits and hyphens, for example
main). - Pick an Engine (Postgres, MySQL or Redis), a Version and the Server it should run on. Pick the server your app runs on.
- Click Create database. You land on the database page; the status changes from Provisioning to Running within a minute.
Already have a database somewhere else? Turn on Use an existing database in the same dialog and paste its postgres:// or mysql:// URL. You get the SQL editor and backups for it too.
The default versions are PostgreSQL 17, MySQL 8.4 and Redis 7. They are private to the server: apps on the same server can reach them, nothing else can.
Connect an app
The database page has four tabs: Dashboard, SQL Editor, Backups and Settings.
On Dashboard, the Use in a project card links it to an app: pick a project on the same server and click Set DATABASE_URL. Then redeploy the project. You can also reference the URL yourself in any variable with ${{ db.<name>.url }} (see Environment variables).
Connection details shows the connection string with the password hidden. Pick a format (connection string, psql, .env, Node.js, Python or Prisma) from the menu. The eye button shows the password and the copy button copies the snippet; the first time, you confirm your account password. To reach the database from your own computer, use vpsm db connect.
Other actions:
- Settings → Rotate password sets a new password. Set DATABASE_URL saves the URL as a fixed value, so click it again after a rotation; variables written as
${{ db.<name>.url }}pick up the new password by themselves. Either way, redeploy the project. - SQL Editor runs queries in the browser (PostgreSQL and MySQL). It is read-only unless your role allows writes and you switch to Read-write. Press ⌘ Enter (or Ctrl Enter) to run. The Tables, Size and Connections buttons fill in useful starter queries.
- The ⋯ menu at the top restarts, stops or starts the database.
- Settings → Delete database asks you to type the name to confirm.
Add a backup destination
Backups go to a bucket you own (AWS S3, Cloudflare R2, Backblaze B2, MinIO and others).
- Open Settings → Backups.
- Fill in Name, Endpoint (for example
https://<account>.r2.cloudflarestorage.com, no path), Bucket, optional Prefix, Region (defaultauto), Access key and Secret key. - Click Add destination.
- We show an encryption password once. Store it somewhere offline and click I saved it.
Backups are encrypted with restic on your server before they leave it, so the bucket only ever holds encrypted data. You need the encryption password to read a backup outside VPS Manager. Show password displays it again after you confirm your password.
Use Test with a server to check that the server can reach the bucket. Remove deletes the destination from VPS Manager; existing backups stay in the bucket.
Schedule backups
On the database page, the Backups card sets the policy:
| Field | Default |
|---|---|
| Destination | one of your destinations |
| Schedule (cron, UTC) | 0 3 * * * (daily at 03:00) |
| Keep daily / weekly / monthly | 7 / 4 / 6 |
Tick Scheduled backups on and click Save schedule. After the first save, Back up now takes a backup immediately. Older backups are pruned to the retention you set.
Restore
- In the Backups card, click Restore… next to a successful backup.
- Confirm Restore this backup into a NEW database on the same server?
The backup is restored into a new database named like <name>-restore-2026-01-31-ab12. Your existing database is not touched. Check the restored copy, then point your app at it if you want to switch. Restores are from backup snapshots; point-in-time recovery is not available.