mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
d4cbbf18e0
Co-authored-by: SamTv12345 <samtv12345@samtv12345.com>
29 lines
816 B
Markdown
29 lines
816 B
Markdown
# CLI
|
|
|
|
You can find different tools for migrating things, checking your Etherpad health in the bin directory.
|
|
One of these is the migrateDB command. It takes two settings.json files and copies data from one source to another one.
|
|
In this example we migrate from the old dirty db to the new rustydb engine. So we copy these files to the root of the etherpad-directory.
|
|
|
|
````json
|
|
{
|
|
"dbType": "dirty",
|
|
"dbSettings": {
|
|
"filename": "./var/rusty.db"
|
|
}
|
|
}
|
|
````
|
|
|
|
|
|
|
|
````json
|
|
{
|
|
"dbType": "rustydb",
|
|
"dbSettings": {
|
|
"filename": "./var/rusty2.db"
|
|
}
|
|
}
|
|
````
|
|
|
|
|
|
After that we need to move the data from dirty to rustydb.
|
|
Therefore, we call `pnpm run migrateDB --file1 test1.json --file2 test2.json` with these two files in our root directories. After some time the data should be copied over to the new database.
|