I have tried both --min-age and --max-age to cleanup a cloudflare r2 bucket of pending uploads.
None of them works and the default is to only delete older than 24 hours.
And also this is not working anymore:
01:36PM - 03 Mar 20 UTC
10:57AM - 28 Feb 23 UTC
Welcome :-) We understand you are having a problem with rclone; we want
… to help you with that!
If you've just got a question or aren't sure if you've found a bug then please use the rclone forum:
instead of filing an issue for a quick response.
If you are reporting a bug or asking for a new feature then please use one of the templates here:
otherwise fill in the form below.
The Rclone Developers
#### Output of `rclone version`
- os/arch: linux/amd64
- go version: go1.11.9
#### Describe the issue
Playing with Oracle Cloud Infrastructure's block storage and rclone, I found that it worked very nicely (and very fast), right up to the point where I deleted the contents of my test bucket and tried to remove the bucket itself. This failed and OCI claimed that there were multi-part uploads pending and that the bucket could not be deleted until these were stopped (or perhaps the verbiage was "cancelled").
rclone does not appear to offer any way to do that and the only way otherwise is to install some other commandline tool, which I'm disinclined to do.
rclone should support cancelling (and possibly listing) current pending multi-part uploads.
Rclone backend doesn't even recognize cleanup as a valid argument
yes, obviously this is what i'm running
Could you provide more details?
As new issue template asks.
rclone version, command you run, -vv log
May 23, 2023, 10:13am
backend command instead
rclone backend cleanup -o max-age=1h s3:bucket/path/
Note that if you are using crypt you need to use the underlying s3 remote not the crypt remote here.
Thanks! The issue was that I was running on a crypt remote.
It fails with a weird message tho! It says "failed to backend: command cleanup failed: command not found" as if it is not a valid command at all. Perhaps it should fail with a "this is a crypt remote" or something?
May 24, 2023, 11:18am
If it said something like this would that help? At this point I can detect backends which wrap other things (like crypt or compress) but I can't tell what they are wrapping so I need a generic message!
Failed to backend: command "cleanup" failed: command not found: try the underlying remote
I think this would be a better message than saying the command is not found
May 27, 2023, 2:42pm
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.