Is there an easy way to export and import collections with media files

We have two cockpit instances deployed currently for each environment (prod & dev) and we wanted to sync the dev cockpit with prod cockpit data.

Exporting and importing works for collections that don’t have media files but for collections that have media files, the media is not getting linked and is set to null even though the media file exists in the dev cockpit environment.

So I was wondering what is the best way to approach this scenario?

Thanks in advance.