当前位置: 动力学知识库 > 问答 > 编程问答 >

bash - How to delete 7 days old backup files from s3 keeping only one file?

问题描述:

I am taking and uploading mongodb backup on s3 every two hours with cron.

17 */2 * * *

Now I want to keep all files of last 7 days, and want to delete all files from s3 after 7 days but want to keep one backup for 1 day.

I am using S3cmd.

How can I do that?

分享给朋友:
您可能感兴趣的文章:
随机阅读: