github.com/artpar/rclone@v1.67.3/docs/content/commands/rclone_size.md (about) 1 --- 2 title: "rclone size" 3 description: "Prints the total size and number of objects in remote:path." 4 slug: rclone_size 5 url: /commands/rclone_size/ 6 groups: Filter,Listing 7 versionIntroduced: v1.23 8 # autogenerated - DO NOT EDIT, instead edit the source code in cmd/size/ and as part of making a release run "make commanddocs" 9 --- 10 # rclone size 11 12 Prints the total size and number of objects in remote:path. 13 14 ## Synopsis 15 16 17 Counts objects in the path and calculates the total size. Prints the 18 result to standard output. 19 20 By default the output is in human-readable format, but shows values in 21 both human-readable format as well as the raw numbers (global option 22 `--human-readable` is not considered). Use option `--json` 23 to format output as JSON instead. 24 25 Recurses by default, use `--max-depth 1` to stop the 26 recursion. 27 28 Some backends do not always provide file sizes, see for example 29 [Google Photos](/googlephotos/#size) and 30 [Google Docs](/drive/#limitations-of-google-docs). 31 Rclone will then show a notice in the log indicating how many such 32 files were encountered, and count them in as empty files in the output 33 of the size command. 34 35 36 ``` 37 rclone size remote:path [flags] 38 ``` 39 40 ## Options 41 42 ``` 43 -h, --help help for size 44 --json Format output as JSON 45 ``` 46 47 48 ## Filter Options 49 50 Flags for filtering directory listings. 51 52 ``` 53 --delete-excluded Delete files on dest excluded from sync 54 --exclude stringArray Exclude files matching pattern 55 --exclude-from stringArray Read file exclude patterns from file (use - to read from stdin) 56 --exclude-if-present stringArray Exclude directories if filename is present 57 --files-from stringArray Read list of source-file names from file (use - to read from stdin) 58 --files-from-raw stringArray Read list of source-file names from file without any processing of lines (use - to read from stdin) 59 -f, --filter stringArray Add a file filtering rule 60 --filter-from stringArray Read file filtering patterns from a file (use - to read from stdin) 61 --ignore-case Ignore case in filters (case insensitive) 62 --include stringArray Include files matching pattern 63 --include-from stringArray Read file include patterns from file (use - to read from stdin) 64 --max-age Duration Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off) 65 --max-depth int If set limits the recursion depth to this (default -1) 66 --max-size SizeSuffix Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off) 67 --metadata-exclude stringArray Exclude metadatas matching pattern 68 --metadata-exclude-from stringArray Read metadata exclude patterns from file (use - to read from stdin) 69 --metadata-filter stringArray Add a metadata filtering rule 70 --metadata-filter-from stringArray Read metadata filtering patterns from a file (use - to read from stdin) 71 --metadata-include stringArray Include metadatas matching pattern 72 --metadata-include-from stringArray Read metadata include patterns from file (use - to read from stdin) 73 --min-age Duration Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off) 74 --min-size SizeSuffix Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off) 75 ``` 76 77 ## Listing Options 78 79 Flags for listing directories. 80 81 ``` 82 --default-time Time Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z) 83 --fast-list Use recursive list if available; uses more memory but fewer transactions 84 ``` 85 86 See the [global flags page](/flags/) for global options not listed here. 87 88 # SEE ALSO 89 90 * [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends. 91