Moving Data Across Workspaces
On this page
You can only share data or attach databases within a single workspace group, not across groups.
To move data between workspace groups, you can use one of the following methods:
Move a Table or a Subset of Data (ETL via Object Storage)
This method involves the following steps:
-
Export from the source workspace group: From a workspace in the source workspace group (WSG), write the table to S3/GCS/Azure Blob using
SELECT ... . INTO For example: SELECT * FROM src_db.src_tableINTO S3 's3://my-bucket/my-prefix/'CONFIG '{...}'CREDENTIALS '{...}';Variants exist for
INTO AZURE,INTO GCS, etc.for details refer SELECT -
Re-create the schema in target workspace group: In a workspace in the destination WSG, create the destination table with matching DDL.
-
Load into target workspace group: In the destination WSG, use a Pipeline (recommended) or
LOAD DATAfrom that bucket to load into the new table.CREATE PIPELINE p_move_table ASLOAD DATA S3 's3://my-bucket/my-prefix/'CONFIG '{...}'CREDENTIALS '{...}'INTO TABLE dest_db.dest_table;START PIPELINE p_move_table;For details on options available refer:
Move an Entire Database
If you want to move a whole database across WSGs, you can:
Run BACKUP DATABASE from a workspace in the source workspace group to object storage.
Run RESTORE DATABASE from a workspace in the destination workspace group, pointing at that backup.
Last modified: March 17, 2026