vfs: --vfs-used-is-size to report used space using recursive scan (#4043)
Some backends, most notably S3, do not report the amount of bytes used. This patch introduces a new flag that allows instead of relying on the backend, use recursive scan similar to `rclone size` to compute the total used space. However, this is ineffective and should be used as a last resort. Co-authored-by: Yves G <theYinYeti@yalis.fr>
This commit is contained in:
parent
297ca23abd
commit
c0cf54067a
4 changed files with 35 additions and 2 deletions
13
vfs/help.go
13
vfs/help.go
|
@ -259,4 +259,17 @@ The flag controls whether "fixup" is performed to satisfy the target.
|
|||
If the flag is not provided on the command line, then its default value depends
|
||||
on the operating system where rclone runs: "true" on Windows and macOS, "false"
|
||||
otherwise. If the flag is provided without a value, then it is "true".
|
||||
|
||||
### Alternate report of used bytes
|
||||
|
||||
Some backends, most notably S3, do not report the amount of bytes used.
|
||||
If you need this information to be available when running !df! on the
|
||||
filesystem, then pass the flag !--vfs-used-is-size! to rclone.
|
||||
With this flag set, instead of relying on the backend to report this
|
||||
information, rclone will scan the whole remote similar to !rclone size!
|
||||
and compute the total used space itself.
|
||||
|
||||
_WARNING._ Contrary to !rclone size!, this flag ignores filters so that the
|
||||
result is accurate. However, this is very inefficient and may cost lots of API
|
||||
calls resulting in extra charges. Use it as a last resort and only with caching.
|
||||
`, "!", "`")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue