Created
January 25, 2018 16:17
-
-
Save nitheesh/00835c2f0053c3da328c3e11a6e506d4 to your computer and use it in GitHub Desktop.
Drupal 8 Drush config export to gzipped tar file
This file contains 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
#Linux | |
------------ | |
#Change directory to Drupal root | |
cd ~/public_html/<site-name> | |
#Export config to "config" directory | |
drush config-export --destination=~/tmp/config | |
cd ~/tmp | |
# Tar all files in "config" directory to `config.tar.gz` | |
tar -czf config.tar.gz -C config . | |
Now you can import ~/tmp/config.tar.gz file to config. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment