drupal-dump
v0.0.11
Published
Dump & compress a Drupal database
Downloads
16
Readme
drupal-dump
CLI tool to dump & compress a Drupal database
Installing
The lazy approach to installing this requires sudo (root) access:
sudo npm install -g drupal-dump
Of course, I do not recommend installing npm packages with sudo unless it's required.
This is how I install CLI tools from npm (like drupal-dump) without sudo:
- perform these steps: https://gist.github.com/gavinengel/1842179837823dc25730
- cd ~/bin/_npm/
- npm install --save drupal-dump
Usage
Usage: drupal-dump -u "dbuser" -p "dbpassword" -n "dbname"
# Saves a gzip compressed SQL dump of Drupal database
# to: /home/gavin/tmp/dumps/<dbname>.sql.gz
Dump & compress a Drupal database
Options:
-h, --help output usage information
-V, --version output the version number
-u, --user <user> MySQL username
-p, --password <password> MySQL password
-n, --dbname <dbname> MySQL database name
-h, --host <host> MySQL hostname/IP address
-U, --sshuser <sshuser> SSH username
-i, --import import compressed dump file from cache directory into database
-d, --dryrun perform a trial run and output debugging
Alternatives
These are alternative projects which can yield achieve a similar result:
- https://www.npmjs.com/package/drush-reloadp
- http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
- https://launchpad.net/mydumper
License
(The MIT License) Copyright (c) 2015 Gavin Engel <[email protected]>
See: http://opensource.org/licenses/MIT