Grunt plugin for dumping MySQL databases as part of a deployment pipeline. Version 1.1.0, last updated in 2014. It relies on the mysqldump command-line tool and Grunt ~0.4.1. Unlike more modern task runners, this plugin is tightly coupled to the Grunt 0.4 ecosystem and is not actively maintained. It supports both local and SSH remote connections but lacks encryption or password protection for backup files. It is recommended only for legacy projects.
npm install grunt-mysql-dumpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install, load, configure, and run the grunt-mysql-dump plugin for a local database dump.
Use Gulp or npm scripts instead of Grunt.
Double-check option names: 'host', 'database', 'user', 'pass', 'backup_to', 'ssh_host'.
Install MySQL client tools: run 'sudo apt-get install mysql-client' or equivalent.
Test SSH connectivity manually and ensure the 'ssh' command is available.
Check MySQL credentials, database name, and that mysqldump is installed. Run 'mysqldump --version' to verify.
Run 'npm install grunt-mysql-dump --save-dev' and add 'grunt.loadNpmTasks("grunt-mysql-dump")' to your Gruntfile.Wrap your code in 'module.exports = function(grunt) { ... }'.