This tool helps you to migrate the DB from latest version of nxs-chat-srv to nxs-support-bot v1.0.0.
In text below lets use following conventions:
- nxs-chat-srv DB it's an
old
DB - nxs-support-bot DB it's a
new
DB
What this tool do:
- Cleans up a data in
new
DB - Migrates necessary data from
old
MySQL tonew
- Migrates necessary data from
old
Redis tonew
- While migration all incorrect data from
old
tonew
will be skipped
This app is a helper for nxs-support-bot. Please see nxs-support-bot readme for installation.
Option | Type | Required | Default value | Description |
---|---|---|---|---|
logfile |
String | No | stdout |
Log file path. Also you may use stdout and stderr |
loglevel |
String | No | info |
Log level. Available values: debug , warn , error and info |
pidfile |
String | No | - | Pid file path. If pidfile is not set it will not be created |
src |
Src | Yes | - | Source (old ) databases settings |
dst |
Dst | Yes | - | Destination (new ) databases settings |
Option | Type | Required | Default value | Description |
---|---|---|---|---|
mysql |
MySQL | Yes | - | MySQL settings |
redis |
Redis | Yes | - | Redis settings |
Option | Type | Required | Default value | Description |
---|---|---|---|---|
mysql |
MySQL | Yes | - | MySQL settings |
Option | Type | Required | Default value | Description |
---|---|---|---|---|
host |
String | Yes | - | Host to connect |
port |
Int | Yes | - | Port to connect |
db |
String | Yes | - | DB name to connect |
user |
String | Yes | - | User to connect |
password |
String | Yes | - | Password to connect |
Option | Type | Required | Default value | Description |
---|---|---|---|---|
host |
String | Yes | - | Host to connect |
port |
Int | Yes | - | Port to connect |
For support and feedback please contact me:
- telegram: @borisershov
- e-mail: b.ershov@nixys.ru
nxs-support-bot-migrate is released under the Apache License 2.0.