db-restore

1.1.0 • Public • Published

db-restore

creates a db from sql files

Usage

db-restore --config=config.js --data-dir=../data-dir

all options are optional. if you ommit one the following defaults are used:

  • config: $pwd/config.js
  • data-dir: $pwd/data/

All paths may be relative and will be resolved rtelative to $pwd

Option --config=

Contains the path to a config file which must export the following object:

module.exports = {
      database: 'myDb'
    , user: 'root'
    , pass: 'secure'
    , host: 'somne.domain'
    , port: 5432
};

Option --data-dir=

Specifies the folder from where the dumps will be loaded

Readme

Keywords

none

Package Sidebar

Install

npm i db-restore

Weekly Downloads

4

Version

1.1.0

License

MIT

Last publish

Collaborators

  • ee