Getting size only (nothing else)

Hi,

I am looking in getting a daily size report for more than 50 buckets. Whenever I try rclone size ..... I get something like this:
Total objects: 6933
Total size: 3.870 TBytes (4255225143324 Bytes)

Any ideas on how to only get this "3.870 TBytes" or better yet "4255225143324" (Bytes)

Thanks

Is each bucket a remote?

[felix@gemini ~]$ rclone about GD:
Used:    68.898T
Trashed: 0
Other:   129.377M

yes, each bucket has it's own config but that's not the problem. the problem is that I get 2 rows of information when I only need the actual size. tried your command as well and got:
2019/07/08 18:20:51 Failed to about: S3 bucket doesn't support about

You can use the --json flag and parse the output you want.

rclone size remote: | grep -oP "\(\K\S+"

Thanks for the tip. Looked it over and found this: --json | jq -r ".bytes"

this worked as well. Thanks Igor.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.