1. drush status
  2. drush cex --destination=path/to/export-config
  3. drush cim
  4. drush updb
  5. drush generate
  6. drush sql-dump --gzip --result-file=./sites/default/files/YOUR-FILE-NAME.sql
    1. Export a database compressed as gzip