By dorlenko
Hello! I try add expire days from file and bucket but have this problem:
sudo s3cmd expire s3://<my-bucket>/ --expiry-days=3 expiry-prefix=backup
ERROR: Error parsing xml: syntax error: line 1, column 0 ERROR: not found ERROR: S3 error: 404 (Not Found)
and this
sudo s3cmd expire s3://<my-bucket>/<folder>/<file> --expiry-day=3
ERROR: Parameter problem: Expecting S3 URI with just the bucket name set instead of ‘s3://<my-bucket>/<folder>/<file>’
How add expire days in DO Spaces for folder or file from s3cmd?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi dorlenko,
I’ve come across this issue too this evening. Did you ever find a fix or workaround?
I’ve just submitted a support request with DO support, so hoping to hear back about whether this is something DO Spaces supports, whether it’s in the product backlog or failing that, where we can submit a feature request.
If I find out anything useful, I’ll post it back here, but was wondering whether you got any further than me.
Thanks,
Barry
Hi @dorlenko
Thanks for coming back to me. I’ve decided to take the same route. I’ve put up a Github Gist: https://gist.github.com/barryrld/b4bbedfa63169e0857b4571d1016054e
I wonder how this compares to your solution.
Anyone else reading this, please feel free to try this script out and remember to test it in a safe environment thoroughly as deletions are destructive!
Hope this helps.
Thanks,
Barry
Hi @barryfisher
I solved this problem differently. Later I’ll write about your script.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.