Files
supabase/apps/docs/content/guides/platform/clone-project.mdx
Timothy LimandClaude Sonnet 5.5 b103d6098b docs(platform): post-restore reconfiguration partial for migration and clone guides (#53782)
Move the list of items that a restore doesn't carry over into a single
`restore-manual-configurations` partial, rendered as a caution
admonition, and include it on the clone, backup-restore, and
dashboard-restore pages.

- Add the partial with links for transferring Storage objects and Edge
Functions.
- Replace the inline lists in clone-project and dashboard-restore.
- Move compute size, disk, SSL, and network restrictions into the "What
will be transferred?" list on the clone page.

## Problem

- Inconsistent usage of steps that require reconfiguration after
migration/cloning
 
## Solution

- Consolidate to a partial and add it to one migration guide that didn't
have instructions previously

## Review instructions

- Doc only contents so should be sufficient to review from source
- Notable changes
- Previously [Backup and Restore using the
CLI](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore)
did not have any notice of this
- Removed mention of storage and bucket configuration as that is stored
in the database <img width="2840" height="1026" alt="Screen Capture
2026-11-23 at 17 19 34@2x"
src="https://github.com/user-attachments/assets/b2e8af76-2c1c-4581-9b61-099773976211"
/>
   - Document some differences between the clone and non cloning options
     - database extension
- compute instance size, disk attributes, SSL enforcement settings, and
network restrictions
- Removed mention of database extensions in [Restore to a new
project](https://supabase.com/docs/guides/platform/clone-project) as it
is inconsistent with admonition later on in the doc: `Restore to a new
project is a binary restore: it copies the entire database, including
any enabled extensions`
   
    
## Preview

[Backup Dashboard
backup](https://supabase.com/docs/guides/platform/migrating-within-supabase/dashboard-restore)
<img width="1410" height="664" alt="Screen Capture 2026-11-23 at 17 00
24@2x"
src="https://github.com/user-attachments/assets/c73f6592-899f-4727-98c2-6bd17b894953"
/>

[Backup and Restore using the
CLI](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore)
<img width="1404" height="671" alt="Screen Capture 2026-11-23 at 17 00
41@2x"
src="https://github.com/user-attachments/assets/d5beb415-f023-4910-a942-5a3486ee8b58"
/>

[Restore to a new
project](https://supabase.com/docs/guides/platform/clone-project)
<img width="1396" height="616" alt="Screen Capture 2026-11-23 at 17 01
02@2x"
src="https://github.com/user-attachments/assets/00b19cdf-113d-4994-be09-24ddaf13a3f5"
/>


## Checklist

Check all before review:

- [X] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [X] If I wrote a new docs topic or edited an existing topic, I used
the `/review-the-docs`
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 19:07:36 +08:00

71 lines
5.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Restore to a new project
subtitle: How to clone your existing Supabase project
---
<Admonition type="note" title="Beta Version">
You can clone your Supabase project by restoring your data from an existing project into a completely new one. This process creates a database-only copy and requires manual reconfiguration to fully replicate your original project.
</Admonition>
**What will be transferred?**
- Database schema (tables, views, procedures)
- All data and indexes
- Database roles, permissions and users
- Auth user data (user accounts, hashed passwords, and authentication records from the auth schema)
- Encryption root key (so [Vault](/docs/guides/database/vault) secrets and encrypted columns remain readable in the new project)
- Key configurations from the original project, including the compute instance size, disk attributes, SSL enforcement settings, and network restrictions
<$Partial path="restore-manual-configurations.mdx" variables={{ "extensions": "", "project_settings": "" }} />
Whether you're using physical backups or Point-in-Time recovery (PITR), this feature allows you to duplicate project data with ease, perform testing safely, or recover data for analysis. Access to this feature is exclusive to users on paid plans and requires that physical backups are enabled for the source project.
<Admonition type="note">
PITR is an additional add-on available for organizations on a paid plan with physical backups enabled.
</Admonition>
To begin, switch to the source project—the project containing the data you wish to restore—and go to the [database backups](/dashboard/project/_/database/backups/restore-to-new-project) page. Select the **Restore to a New Project** tab.
A list of available backups is displayed. Select the backup you want to use and click the "Restore" button. For projects with PITR enabled, use the date and time selector to specify the exact point in time from which you wish to restore data.
Once you’ve made your choice, Supabase takes care of the rest. The data will remain in the same region as the source project to ensure compliance with data residency requirements. The entire process is fully automated.
<Admonition type="note">
The time required to complete the restoration can vary depending largely on the volume of data involved. If you have a large amount of data you can opt for higher performing disk attributes on the source project _before_ starting a clone operation. These disk attributes will be replicated to the new project. This incurs additional costs which will be displayed before starting.
</Admonition>
There are a few important restrictions to be aware of with the "Restore to a New Project" process:
- Projects that are created through the restoration process cannot themselves be used as a source for further clones at this time.
- The feature is only accessible to paid plan users with physical backups enabled, ensuring that the necessary resources and infrastructure are available for the restore process.
Before starting the restoration, you’ll be presented with an overview of the costs associated with creating the new project. The new project will incur additional monthly expenses based on the mirrored resources from the source project. It’s important to review these costs carefully before proceeding.
Once the restoration is complete, the new project will be available in your dashboard and will include all data, tables, schemas, and selected settings from the chosen backup source. It is recommended to thoroughly review the new project and perform any necessary tests to ensure everything has been restored as expected.
New projects are completely independent of their source, and as such can be modified and used as desired.
<Admonition type="caution">
Restore to a new project is a binary restore: it copies the entire database, including any enabled extensions that carry out external operations (for example `pg_net`, `pg_cron`, wrappers). These jobs start running as soon as the restore completes. There's no way to exclude or pause them going into the restore.
If you need to inspect or remove cron jobs, webhook triggers, or wrapper definitions before any external extension runs, use a [logical restore with the Supabase CLI](/docs/guides/platform/migrating-within-supabase/backup-restore) instead. This process is manual, and doesn't carry over the encryption root key, so Vault secrets and encrypted columns aren't readable unless you migrate the key separately.
</Admonition>
Restoring to a new project is an excellent way to manage environments more effectively. You can use this feature to create staging environments for testing, experiment with changes without risk to production data, or swiftly recover from unexpected data loss scenarios.
<Admonition type="danger">
Recovering deleted rows by manually inspecting dead tuples (for example with `pageinspect` and `pg_surgery`) isn't supported on Supabase. It bypasses your table's constraint checks and can corrupt your data by restoring rows that violate a `CHECK`, `FOREIGN KEY`, or `UNIQUE` constraint.
</Admonition>
Restoring to a new project is the safe way to get deleted rows back. Restore from a physical backup that predates the deletion, or, if the deletion happened too recently for your last backup to have captured it, enable PITR and restore to the exact point in time before the deletion. Then copy the rows you need into your live project.