dumps a postgres db and some of its tables to sql files
db-dump --config=config.js --data-dir=../data-dir --config-dir=/path/to/config/dir
all options are optional. if you ommit one the following defaults are used:
- config: $pwd/config.js
- data-dir: $pwd/data/
- config-dir: $pwd/config/
All paths may be relative and will be resolved rtelative to $pwd
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
};
Specifies the folder where the dumps will be stored
Specifies where the config files for the dumps are stored. The folde must contain js files that export obejct of the following form:
module.exports = {
schema: 'authentication_condition_service'
, dataFrom: [ // list of tables for which the data must be dumped
'status'
]
};