I’m just trying to assert the root size of a S3-compatible storage, and I’d like to know if I’m understanding things correctly.
Which cloud storage system are you using?
S3-compatible
The command you were trying to run
Here are the commands that ran successfully, in a separate way:
rclone ncdu "My S3_Storage:"
rclone lsf --format "ps" "My S3_Storage:" -R -d
rclone size "My S3_Storage:"
rclone tree "My S3_Storage:" --size
Apparently, the first 3 commands do not indicate the root size; rclone size does show a number of total objects that does not take into account the default folder, but only the files in it.
The command rclone tree "My S3_Storage:" --size does explicitly show the root size above the default folder size.
So my question: Is the root (/) size shown via this command reliable, and is this the best way to assert the root (/) size of a S3-compatible storage?
I’m sorry, I was imprecise in naming it a folder, it is, of course, the bucket that is named default.
Here’s the result of the command rclone tree "My S3_Storage:" --size :
But fundamentally, you’re right: there are only buckets and objects.
Regarding my initial question, I’m still unsure because another software confuses buckets for folders, while another one clearly states that my default is a bucket, but what I see above is a root containing one bucket named default. If I had two buckets, they would be both under the / according to the rclone tree.
Is the line ‘[842889430072] /’ valid? Or am I totally misunderstanding?
Have you encountered some situation where its value is incorrect?
No, it’s just that I have been asked by the support of my S3 storage to show the root size of my S3 storage, and that rclone is the only software I tried that shows me a size for /, others are just showing the bucket size and don’t go any further up.
So 1) I just want to be sure that the first line really represents what I think is root.
And 2) I’d like to know if I used the correct command to assert it, or if there is another one more suited to get root size.
Also, the support asked me to show them the result of the command rclonencdu in order to show the root size, but as far I understand, it doesn’t make sense, since ncdu only permits to navigate inside the bucket and so the root size is never shown.
My query is in fact really simple, it’s just that I did not find much info regarding root size for S3 storage. Sorry if I've complicated things.
Thanks.
As I said, rclone size is not explicit enough for me:
Total objects: 9 (9)
Total size: 785.002 GiB (842889430072 Byte)
Since there is twice the total of 9 objects, does it mean one is the total of the bucket and the other one the total of all buckets, and thus the total under /?
If you think that rclone tree --size is alright, I’ll validate your response as the solution.
Regarding rclone ncdu, I do not know if the total usage at the bottom of the window is showing the total of / or of the default bucket, since /default is selected and there is nothing else to select.
I still think the rclone tree --size is the most explicit, since I have only one bucket.