0.0.0 • Published 2 months ago
rsdbyaml-beta v0.0.0
Usage
node build/src/main.js [import|export]
Params
Parameter | Default value | Example value | Description |
---|---|---|---|
--ignore-tables | [] | --ignore-tables=wp_posts,wp_scripts | List of tables, which will be ignored |
--only-tables | [] | --only-tables=wp_posts,wp_scripts | List of tables, which will be proceeded (By default all tables will be proceeded) |
--output-dir | "data/${new Date()}" folder in project root | --output-dir=~/wordpress/db | Path to directory where to save exported database |
--config-path | - | --config-path=/wordpress/config.json | Path to file with config (See config-example.json) |
--import-dir | - | --import-dir=/home/olek/data/2024-03-21 | Path to directory with *.yml files to be imported |
Config
Parameter | Available options |
---|---|
client | 'mysql2', 'pg' |
connection.host | string, for example 'localhost' |
connection.port | number, for example '3306' |
connection.user | string, for example: admin |
connection.password | string, for example: !@ASDW!DAS |
connection.database | string, for example: wordpress |
Development
Warning! After pnpm build
command executed, remember to paste #!/usr/bin/env node
to start of build/src/main.js
0.0.0
2 months ago