0.0.0 • Published 2 months ago

rsdbyaml-beta v0.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 months ago

Usage

node build/src/main.js [import|export] 

Params

ParameterDefault valueExample valueDescription
--ignore-tables[]--ignore-tables=wp_posts,wp_scriptsList of tables, which will be ignored
--only-tables[]--only-tables=wp_posts,wp_scriptsList 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/dbPath to directory where to save exported database
--config-path---config-path=/wordpress/config.jsonPath to file with config (See config-example.json)
--import-dir---import-dir=/home/olek/data/2024-03-21Path to directory with *.yml files to be imported

Config

ParameterAvailable options
client'mysql2', 'pg'
connection.hoststring, for example 'localhost'
connection.portnumber, for example '3306'
connection.userstring, for example: admin
connection.passwordstring, for example: !@ASDW!DAS
connection.databasestring, 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