rsdbyaml-beta
0.0.0 • Public • Published
node build/src/main.js [import|export]
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 |
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 |
Warning! After pnpm build
command executed, remember to paste #!/usr/bin/env node
to start of build/src/main.js
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads