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?