Clone Options
When creating a clone, you choose exactly what will be copied from the source project to the target project.
Components
Each component can be enabled or disabled individually:
| Component | Enabled by Default | What Is Copied |
|---|---|---|
| Schema | Yes | Tables, columns, constraints, indexes, sequences, custom types, extensions |
| Data | Yes | Rows from all tables (or a subset) |
| Views | Yes | SQL views |
| Functions | Yes | PostgreSQL functions and stored procedures |
| Triggers | Yes | Table triggers |
| RLS Policies | Yes | Row Level Security access rules |
| Edge Functions | Yes | Supabase serverless functions |
| Storage | Yes | Buckets and files |
| Auth Users | Yes | User accounts with metadata |
| Cron Jobs | Yes | pg_cron scheduled tasks |
| Webhooks | Yes | Database webhooks |
| Realtime | Yes | Real-time publication configuration |
| Project Config | Yes | Auth providers, PostgREST settings |
Row Limit
When the Data component is enabled, you can set a maximum number of rows per table.
| Value | Behavior |
|---|---|
| Empty or 0 | All rows are cloned |
| 1,000 | Maximum 1,000 rows per table |
| 10,000 | Maximum 10,000 rows per table |
This is useful for:
- Creating a staging environment with a reduced dataset
- Reducing clone time
- Testing with a controlled data volume
Table Exclusion
You can exclude specific tables from data cloning using ignore rules. These rules are configured at the twin level and apply to all clones of that pair.
See Ignore Rules for more details.
Backup
Enable the backup option to save a snapshot of the cloned data. This allows you to restore the data later without needing the source project.
See Restoring a Backup for the restoration procedure.
Option Persistence
When you start a clone from an existing twin, the most recently used options are pre-filled. You don't have to reconfigure everything each time.
Recommended Configurations
Full Migration
Everything enabled, no row limit. To fully duplicate a project.
Schema Only
Enable: Schema, Views, Functions, Triggers, RLS. Disable: Data, Storage, Auth, Edge Functions, Cron, Webhooks, Realtime, Config.
To synchronize the structure without touching the data.
Data Only
Enable: Data. Disable: Everything else.
To refresh the data when the schema is already up to date.
Lightweight Staging
Everything enabled, row limit set to 1,000. For a test environment with a reduced data volume.
Next Steps
- Creating a Clone — Start a clone with these options
- Preview — See what will be cloned before starting
- Ignore Rules — Exclude tables