Skip to content

Instantly share code, notes, and snippets.

@nitheesh
Created January 25, 2018 16:17
Show Gist options
  • Save nitheesh/00835c2f0053c3da328c3e11a6e506d4 to your computer and use it in GitHub Desktop.
Save nitheesh/00835c2f0053c3da328c3e11a6e506d4 to your computer and use it in GitHub Desktop.
Drupal 8 Drush config export to gzipped tar file
#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