1.0.4 • Published 2 years ago

db-angel v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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);
      };
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago