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:
opened 01:36PM - 03 Mar 20 UTC
closed 10:57AM - 28 Feb 23 UTC
enhancement
Remote: S3
<!--
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:
https://forum.rclone.org/
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:
https://github.com/rclone/rclone/issues/new
otherwise fill in the form below.
Thank you
The Rclone Developers
-->
#### Output of `rclone version`
rclone v1.47.0
- 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
ncw
(Nick Craig-Wood)
May 23, 2023, 10:13am
5
Use this 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.
1 Like
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?
ncw
(Nick Craig-Wood)
May 24, 2023, 11:18am
7
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
1 Like
I think this would be a better message than saying the command is not found
system
(system)
Closed
May 27, 2023, 2:42pm
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.