X
Xata5mo ago
Storm

Copy main branch data to a branch

is it possible to to create a new branch from main branch and also transfer the data too?
3 Replies
kostas
kostas5mo ago
This capability is not built-in to the Xata platform but we provide a python script that can do that: https://github.com/xataio/xtools/tree/main/xreplay It can be used to copy Xata databases across accounts, workspaces, regions and branches, or store schema and table content to files on disk in JSON or CSV format. It can create a clone of your main (or any other branch) under a new branch in the same database. Note it doesn't copy file attachments.
Storm
Storm5mo ago
Thank you @kostas !
maxfi
maxfi3w ago
Hi @kostas. Is it possible to copy from one database into another database (different region) onto a new branch? When trying with xreplay I get an error that the database already exists.
Want results from more Discord servers?
Add your server