mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
752 B
24 lines
752 B
3 years ago
|
## config.json
|
||
|
{
|
||
|
"srcProject": "sample",
|
||
|
"dstProject": "sample-copy",
|
||
|
"baseURL": "http://localhost:8080",
|
||
|
"xc-auth": "Copy Auth Token"
|
||
|
}
|
||
|
- baseURL & xc-auth are common configurations for both import & export
|
||
|
|
||
|
## Export
|
||
|
- `srcProject`: specify source project name to be exported.
|
||
|
- Export JSON file will be created as `srcProject.json`
|
||
|
- execute
|
||
|
`cd packages/nocodb/tests/export-import`
|
||
|
`node exportSchema.js`
|
||
|
|
||
|
## Import
|
||
|
- `srcProject`: specify JSON file name to be imported (sans .JSON suffix)
|
||
|
- `dstProject`: new project name to be imported as
|
||
|
- Data will also be imported if `srcProject` exists in NocoDB. Note that, data import isn't via exported JSON
|
||
|
- execute
|
||
|
`cd packages/nocodb/tests/export-import`
|
||
|
`node importSchema.js`
|