How to copy the files/data/posts from production to Staging instance

How to copy/transfer the files/data/posts from production to Staging instance ?
we are working on developing a new theme if we restore a backup from prod instance to staging the developed theme is getting lost.

To test all the functionalities, we would need to import the existing posts from PROD to Staging.

Can someone please guide on this ?

That means there is something wrong with your approach of developing the theme. You need to review your approach and follow best practices for development of themes.
Read: Beginner's guide to developing Discourse Themes

I’ve performed backup/restore across many discourse sites but have never had an instance where design was lost due to backup/restore.

1 Like

Make a backup on production and restore it in staging. if they share an S3 backup bucket then it’s pretty easy.

If it’s just themes, though, your don’t really need a staging site, you can just install the test theme and have your developer use it. check out the Install the Discourse Theme CLI console app to help you build themes

1 Like