Skip to content

Instantly share code, notes, and snippets.

@chx
Last active March 4, 2020 04:44
Show Gist options
  • Save chx/9dbace679a8798f96da4a40e4df51902 to your computer and use it in GitHub Desktop.
Save chx/9dbace679a8798f96da4a40e4df51902 to your computer and use it in GitHub Desktop.
Config export from production
On production:
rm -Rf /tmp/cex/* /tmp/cex.tgz
drush cex --destination=/tmp/cex -y sync
cd /tmp/cex
tar czf ../cex.tgz .
On local:
git checkout master
scp [email protected]:/tmp/cex.tgz /tmp
rm -Rf sync/*
cd sync
tar xzf /tmp/cex.tgz
git add .
git commit -am 'prod config export'
git push
git checkout release-branch
git pull
git cherry-pick master
git push
git checkout develop
git pull
git cherry-pick master
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment