1.0.4 • Published 2 years ago
db-angel v1.0.4
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); };