Suggestions for duplicating production DB to staging?

Are there any recommended ways to add a timer task that can replicate a database from production to a staging app?

We’re using AWS RDS Postgres and a version 3 rack.

We have an existing bash script I can refactor, but it’s quite long, and it seems to me this is a really common use-case.

I’d be really interested to hear how other people are achieving this.

Thanks in advance.