db-angel
v1.0.4
Published
- Install package ``npm i db-angel`` - Create dbAngel.js file inside the root of the project --You can add custom actions and specify configurations inside this file. ``` exports.backupCmd = (filename) => { return `mysqldump -u ${dbCfg.u
Downloads
6
Readme
Backup server
- Install package
npm i db-angel
- Create dbAngel.js file inside the root of the project
--You can add custom actions and specify configurations inside this file.
exports.backupCmd = (filename) => { return `mysqldump -u ${dbCfg.username} -p${dbCfg.password} ${dbCfg.name} | gzip > ${filename}`; }; exports.cron = "* * * * *"; exports.onBackupCompleted = (filename) => { console.log(filename); };