rsdbyaml-beta

0.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i rsdbyaml-beta

Weekly Downloads

2

Version

0.0.0

License

Apache-2.0

Unpacked Size

50.6 kB

Total Files

46

Last publish

Collaborators

  • ascool28