Application Backups
Application backups
Capture a point-in-time copy of an app's data and restore it later with a single call. Backups are handled entirely by Ngris: nothing to install, no dump scripts to schedule, no bucket to manage. You run one backup on demand or leave a schedule to run them for you.
An app's own backups are of three kinds; what each captures depends on what the app has:
- Content (
content) — a gzipped tar of the app's persistent content volume. Applies to apps that have one — today, Managed WordPress. - Full (
full, the API's default) — the content volume and a gzipped SQL dump of the app's database in one backup. A WordPress site's full backup captures the whole site, files and database. - Database (
database) — a gzipped SQL dump of the app's database alone. Such a backup belongs to the database and is listed on its Backups page. The app's API routes still accept this kind, as a compatibility path to the app's database (see Database backups through the app API).
ready state. A plain static site has neither, so it has nothing to back up here — static content is versioned by its deploys instead.
Backups are gated by granular per-operation entitlements — see Plan availability.
Backups
Back up the site's files, or its database and files together (full). Take one now, or schedule automatic backups below. Restores overwrite the site's current data.
See your backups
Open your app and go to its Backups page. When the app has a database, the page starts with a line naming it and an Open its backups button that takes you to the database's Backups page, where its database backups are. For a WordPress site, the page lists the site's content and full backups: each shows its kind (content / full), whether it was manual or automatic, its status (pending → running → completed, or failed), the captured size, and when it was created. A backup that has been restored also shows a restore status.
API
curl "https://api.ngris.com/v1/applications/{uuid}/backups" \
-H "X-API-KEY: <your_api_key>"
The response lists the backups under items, reports your plan capabilities and the retention_max cap, includes the app's own schedule (or null) and names the app's database (or null). If your plan grants none of the backup features, locked is true. See the API reference for the full shape.
| Backup | When | Status |
|---|---|---|
| full manual | just now | Running… |
| full auto | 9h ago | Completed |
| content manual | 2d ago | Completed Restored |
Take a backup on demand
From a WordPress site's Backups page, click Back up content (the files) or Back up now (full) (files and database). Ngris queues the job; the new backup appears as pending and moves to completed when the dump and upload finish. Only one of the app's backups runs at a time. To back up the database alone, use Back up now on the database's Backups page.
API
curl -X POST "https://api.ngris.com/v1/applications/{uuid}/backups" \
-H "X-API-KEY: <your_api_key>" \
-H "Content-Type: application/json" \
-d '{ "kind": "full" }'
ready database, or a content backup on an app with no content volume, is rejected (400). Requesting a kind your plan does not grant returns 403. If a backup is already in progress, the request returns 409 — wait for it to finish.
Backups
Backing up…Back up the site's files, or its database and files together (full). Take one now, or schedule automatic backups below. Restores overwrite the site's current data.
| Backup | When | Status |
|---|---|---|
| full manual | just now | Pending… |
| full auto | 9h ago | Completed |
Restore a backup
From the Backups page, pick a completed backup and click Restore. Ngris restores the captured artifacts into place; the backup's restore_status tracks progress (restoring → restored, or failed).
API
curl -X POST \
"https://api.ngris.com/v1/applications/{uuid}/backups/{backup_uuid}/restore" \
-H "X-API-KEY: <your_api_key>"
The call returns 202 with { "status": "restoring" }. Only a completed backup can be restored (409 otherwise), and the restore is gated by the matching per-kind entitlement — content restore for a content backup, both database and content restore for a full one (403 if your plan lacks it).
| Backup | When | Status |
|---|---|---|
| full auto | 9h ago | Completed Restoring… |
Download a backup
You can pull a completed backup's raw artifact down to keep an off-platform copy. Each artifact streams as a gzip file — the SQL dump for the database, the tar for the content volume. Downloading a database dump needs the Database data permission (see Databases → Permissions).
API
# database dump (default)
curl -L -o backup-db.sql.gz \
"https://api.ngris.com/v1/applications/{uuid}/backups/{backup_uuid}/download?artifact=database" \
-H "X-API-KEY: <your_api_key>"
# content volume
curl -L -o backup-content.tar.gz \
"https://api.ngris.com/v1/applications/{uuid}/backups/{backup_uuid}/download?artifact=content" \
-H "X-API-KEY: <your_api_key>"
The artifact query selects database (the default) or content. The response is Content-Type: application/gzip, served as an attachment.
| Backup | Status | |
|---|---|---|
| full auto | Completed |
|
Scheduling & retention
Instead of remembering to click Back up now, leave a schedule running. On a WordPress site's Backups page, the Automatic backups section runs one backup of a chosen kind — Full (database + content) or Content — daily or weekly at a fixed UTC hour, and keeps the most recent N backups — older ones are pruned automatically. A database's automatic backups are set on the database's Backups page.
- Frequency —
dailyorweekly. - Hour — an hour of the day in UTC (
0–23); pick a low-traffic window. - Kind —
fullorcontent, same as an on-demand backup. - Retain count — how many backups to keep. It is clamped to your plan's retention cap (
backup_retention_max); each scheduled run deletes the app's oldest completed backups beyond the count.
API
curl -X PUT \
"https://api.ngris.com/v1/applications/{uuid}/backup-schedule" \
-H "X-API-KEY: <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"kind": "full",
"frequency": "daily",
"hour_utc": 3,
"retain_count": 7
}'
application_backup_schedule entitlement (403 without it) — but a downgraded account can always turn one off. If an account later loses the entitlement, its automatic schedules — its apps' and its databases' — are disabled for it.
Automatic backups
OnDatabase backups through the app API
Scripts and tools built on the app backup routes keep working. For kind: "database", /v1/applications/{uuid}/backups and /backup-schedule act on the app's primary database — the database it was bound to the older way, otherwise the one connected with no prefix that reaches production (the one behind its DB_* variables):
- the list also returns that database's backups (each with
database_uuid); - creating a
databasebackup backs up that database; restoring, downloading and deleting accept its backups; - a
databaseschedule is the database's schedule.
These calls follow the database's rules and also need the matching Databases permission (and Database data to download a dump). An app with several databases reaches only its primary one here. Prefer the database backups API for new work.
# Through the app (its primary database)
curl -X POST "https://api.ngris.com/v1/applications/{uuid}/backups" \
-H "X-API-KEY: <your_api_key>" \
-H "Content-Type: application/json" \
-d '{ "kind": "database" }'
# On the database itself (preferred)
curl -X POST "https://api.ngris.com/v1/databases/{uuid}/backups" \
-H "X-API-KEY: <your_api_key>"Plan availability
Backups are a plan feature. Rather than a single on/off switch, each operation has its own entitlement, so a plan can grant, say, backups without restore, or database backups without content backups:
application_db_backup— take a database backup (also the database part of a full backup).application_db_restore— restore a database backup.application_content_backup— take a content-volume backup.application_content_restore— restore a content-volume backup.application_backup_schedule— enable automatic scheduled backups.backup_retention_max— the numeric cap on how many backups a schedule retains.
The database ones apply to a database's backups too. The GET backups response reports these as a capabilities object (which operations are actually available for this app on your plan) plus retention_max; locked is true when your plan grants none of them. The dashboard uses the same signals to show or lock each button.
Backups
Backups
Back up and restore this app's database and content volume — on-demand or on a schedule.