Created
July 6, 2015 21:27
-
-
Save sobi3ch/514a361aa71544ca1262 to your computer and use it in GitHub Desktop.
One line drush DB backup without cashe tables (defined in drushrc.php "common" in this example)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| drush -y sql-dump --structure-tables-key=common --gzip --result-file=path/based/on/drupal/root/to/your/backup.sql |
Author
Author
Also is possible to create an drush-alias from it. Example drush-aliases https://github.com/Lullabot/drupal-boilerplate/blob/master/drush/drushrc.php#L56-L62
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example of common tables to omit insed your
drushrc.phphttps://github.com/Lullabot/drupal-boilerplate/blob/master/drush/drushrc.php#L177