Export from production to staging

System Information
  • Strapi Version: 4.25.8
  • Operating System: linux
  • Database: mysql
  • Node Version: 18.20.8
  • NPM Version:
  • Yarn Version:

Hi,
I would like to know what is the best way to export data from production environment to staging?
Does the export/import command moves assets too?

Thanks,
Omer

I personally would recommend doing a full clone. Create a dump of your production db & import it into staging db, then copy uploads folder from production to staging.

This is the most reliable way so far.

Thanks for the solution.
My problem is we’re using a CDN so the files are going there and not to upload directory.
If I move the entire DB would I need to change anything there?
Also in terms of configuration and stuff.