New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expire command should allow setting multiple rules with different prefixes #863
Comments
Note: s3 does allow multiple rules for a bucket (upto 100 according to this: https://aws.amazon.com/blogs/aws/amazon-s3-object-expiration/) |
Does this command remove the object from S3 bucket after the specified number of days in --expiry-days ? |
Almost a year and nothing changed I think. |
Define the rules using something other than s3cmd? Other than that I couldn't come up with anything. |
In stack overflow they suggest aws-cli but it have the same problem :( https://stackoverflow.com/questions/49615977/multiple-lifecycles-s3cmd |
Might be old but you CAN use awscli, like so s3bucket-lifecycle-policy.json:
Shouldn't be hard to implement for s3cmd :) |
For example:
I attempted to set expiration times for several folders like this:
But it seems the effect is only to apply the last provided rule.
I've also tried adding the rules one by one (by separate commands) but the effect is the same. The last command overwrites the previous one instead of adding an additional rule.
The text was updated successfully, but these errors were encountered: