Node.js module for backing up MySQL database tables to SQL dump files. Version 1.0.1 is the latest stable. It provides simple API to export specified tables with options like extended inserts, DROP TABLE statements, locks, and key disabling. The package is a fork from a GitHub issue that optimizes performance over older alternatives. It depends on 'mysql' and 'extend' packages. Easy to use with callback-based API.
npm install node-mysql-backupNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Exports specific MySQL tables to a SQL dump file using options like extended inserts and DROP TABLE.
Always provide a callback function as second argument.
Always specify dest option with a writable file path.
Consider using mysqldump package or mysql2-based alternatives.
Use ssl option or connect over SSH tunnel.
Ensure sequential calls or use a mutex. Not recommended for concurrent backups.
mysqldump(options, function(err) { ... });mysqldump({ host: ..., ... }, callback);Include 'dest' property in options object with a valid file path.