• Submitted by fm56 on
  • Last updated by fm56 on Fri, 09/18/2026 - 11:44
  1. upsun sql-dump -e main to download a copy of the production database. 
  2. ddev import-db --file=database_name.sql to import the dump into your local. 
  3. rm config/sync/* to remove all stored config files. This is a precaution, in case there are obsolete files in the directory. 
  4. ddev drush cr This is really the digital equivalent of throwing salt over one's shoulder, but it does delete the cached config, so maybe not such a bad idea.
  5. ddev drush cex to export the current config.
  6. At this point, if the configuration was synced previously, git status will show no changes. If there are changes, continue to step 7. 
  7. Commit all the changed/added config files, push to stage and merge to main. You might wish to check the configuration sync page on stage to make sure nothing untoward has happened, although you will need to first sync the database back from main to stage to be sure that you're not comparing against an outdated config table.