Options for syncing S3 buckets in the same account and region

Hi, looking for two options to sync two S3 buckets on the sam account and region. On is Prod and the other is Staging. We’d like to have the Prod assets available in staging.
• One option should be on demand - so when we decide to sync a script is called or it could even be triggered via a cron job.
• The other option is for continuous sync - so a frequent cron that calls the process or some service that will update the staging bucket as changes are detected on the prod bucket.
Any advice welcome. And Thanks.

Please respond in this thread.

Have you looked at S3’s built-in replication feature? https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html

No I have not. Thanks for that.
Do you know if we will both be able to have the replication from prod to staging running and continue adding new objects to staging without it breaking?

not off the top of my head, sorry

yes, there’s no reason why you can’t add new objects to the destination bucket manually

To save you some trouble, using replication requires versioning on both buckets. If you’re setting it up manually, ensure you enable versioning as well or it won’t work and won’t give you any errors or anything.