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


i taking , uploading mongodb backup on s3 every 2 hours cron.

17 */2 * * * 

now want keep files of last 7 days, , want delete files s3 after 7 days want keep 1 backup 1 day.

i using s3cmd.

how can that?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -