Every environment has its own backups. They come in two flavors — automatic pre-merge snapshots taken before each merge, and manual snapshots you take on demand. Either kind can be restored into any target, including a new environment that takes over the original’s name if it was deleted.Documentation Index
Fetch the complete documentation index at: https://archie.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Backup types
| Type | When it’s taken | Why it exists |
|---|---|---|
| Automatic pre-merge | Right before every merge runs, on the target environment. | A safety net. If a merge succeeds but turns out to be a mistake, restore this snapshot to revert. |
| Manual | Whenever you click Create backup in the Backups view (or call the API). | Snapshot before a risky operation, or to capture a known-good state. |
What’s in a backup
| Component | Included |
|---|---|
| Database schema | Yes — every table, column, index, relationship, enum, view. |
| Row data | Yes — every row in every table. |
| RBAC roles and permissions | Yes — they live in the database. |
| Auth provider configuration | Provider records are included. Secrets aren’t restored — they’re re-encrypted with each environment’s key. |
| File storage provider configuration | Yes. |
| Custom API gateway routes | Yes. |
| Environment variables | Yes. |
| Files in the storage backend | No — files live in the configured object store and are referenced by ID. The backup captures references, not blobs. |
Taking a manual backup
Switch to the environment you want to back up
Use the environment switcher at the top of the project chrome.
Click Create backup
The backup runs as a background job. The status moves through
pending → running → completed.Manual), the user who created it, the timestamp, and the size.
Restoring a backup
A restore reverts the entire environment — schema and data — to the snapshot point. It’s not a per-change undo.Find the backup
In the Backups view, locate the entry to restore. Pre-merge backups are linked from the corresponding history entry.
Pick the target environment
By default, restoring puts the snapshot back in the same environment it was taken from. You can also restore into a different environment — including a new environment that takes over a deleted one’s name (see below).
Restoring to a deleted environment
A backup outlives its environment — even if you deletefeature-x, its backups stick around through the retention window. To restore them, the platform recreates the environment as part of the restore:
Find the backup
Backups for deleted environments are still listed in the project’s Backups view, with their original environment name shown.
Restore
Click Restore. If no environment with that name currently exists, the platform recreates the environment as part of the operation. The new environment inherits the backup’s schema, data, and configuration.
Pre-merge backups in the merge flow
Every merge automatically produces one pre-merge backup on the target. The backup ID is recorded in the history entry alongside the merge — you don’t have to hunt for it. Common pattern: after a merge intomaster, if a regression surfaces, open History → find the merge → follow the backupId to the Backups view → restore.
Retention
Backups are retained for a configurable window per project. Once a backup ages out, it’s pruned and can no longer be restored. Manual backups can be marked retain forever to opt them out of pruning — useful for capturing release-train snapshots that you want to keep indefinitely. If you need a long rollback window for a specific merge, promote its automatic pre-merge backup to a retained manual backup before the retention window expires.Permissions
Creating, listing, and restoring backups is governed by Role-Based Access. Restore is destructive — typically restricted to admin or operator roles. Read access can be granted more widely if you want broader visibility into snapshots without the ability to restore.FAQ
Are files in S3 / GCS included in the backup?
Are files in S3 / GCS included in the backup?
No. The backup captures the file storage provider configuration and the references records hold to files (file IDs, paths). The actual blobs stay in the configured object store. Treat your storage provider’s own snapshot/versioning as the source of truth for file content.
Can I take a schema-only backup?
Can I take a schema-only backup?
What happens during a restore — is the environment offline?
What happens during a restore — is the environment offline?
The target is locked while the restore runs. Reads continue from the existing data until the restore completes; mutations are rejected with the environment-locked error. Once complete, the target reflects the snapshot’s state and reopens for writes.
Can I restore a backup from one project to a different project?
Can I restore a backup from one project to a different project?
No. Backups are project-scoped — they reference project-specific identifiers (auth keys, project ID, RBAC role IDs) that don’t translate across projects. To clone a project, branch within it.
What if the restore fails?
What if the restore fails?
The target stays in
error state with a failure reason recorded. The platform doesn’t automatically partial-restore — either the backup applies cleanly or the environment is left as it was, in error. Recovery is to run the restore again, or restore a different snapshot.