• Submitted by dgivens8 on
  • Last updated by dgivens8 on Fri, 10/16/2026 - 11:59

To push a database from your local DDEV environment to Upsun, be very careful and very sure that this is necessary. This should only be done in a dire circumstance. 

Do a safety export of the live database:

upsun db:dump -e main > dump.sql

Then push your local database to the Stage environment on the Upsun site:

ddev push upsun --skip-files

Check the Stage site to ensure nothing broke, then push to Main:

ddev push upsun --skip-files --environment="PLATFORM_ENVIRONMENT=main"