Last active
July 22, 2021 09:59
-
-
Save gwagroves/9484dde899c794e8c82f6d08e824bf04 to your computer and use it in GitHub Desktop.
Drupal 8 Drush export config to gzip tar
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
# Change working directory to a temporary location | |
cd ~/temp | |
# Export config to "config" directory | |
# Change `@mysite.local` to your local drush alias | |
drush @mysite.local config-export --destination=~/temp/config | |
# Tar all files in "config" directory to `config.tar.gz` | |
tar -czf config.tar.gz -C config . | |
# `~/temp/config.tar.gz` can now be uploaded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment