Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

S3 versioning: only copy files if they are new or changed

I’m running a cron job in a EC2 instance that backups a database dump and a folder (with files and subfolders) in a S3 bucket.

I only want to backup new and modified files in order to save costs. Is this possible?

I’m currently using aws cp, maybe there is an argument or another command?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

thanks

>Solution :

Use aws s3 sync instead of aws s3 cp and it will do this automatically for you.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading