Skip to content

Instantly share code, notes, and snippets.

@gwagroves
Last active July 22, 2021 09:59
Show Gist options
  • Save gwagroves/9484dde899c794e8c82f6d08e824bf04 to your computer and use it in GitHub Desktop.
Save gwagroves/9484dde899c794e8c82f6d08e824bf04 to your computer and use it in GitHub Desktop.
Drupal 8 Drush export config to gzip tar
# 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