Handling media when updating local/staging to match production

I am trying to figure out the best approach to have our local and staging versions of the content up-to-date with the production’s version. I can do this currently by cloning the Postgresql database from production and importing locally. One issue here is that the database seems to store a reference to the media, and its link. This means when I re-set my local instance using the production database, all my media gets wiped, and re-set to production values.

This can be a problem because it now means that if a developer deletes an image locally, it will also delete from the bucket (I think). It would be ideal if I could just grab the data somehow, and have the images be left alone perhaps?

Interested in seeing if anyone else has encountered a similar issue.