Feature Request: Improve Checksum Manifest Compatibility and Error Reporting
First, I'd like to say that rclone is an outstanding piece of software. I've used it extensively for large-scale data transfers and archival work, and I have tremendous respect for the flexibility and engineering behind it. thank you for such a valuable tool in this industtry providing unique ccompatibilitywith so many providers. its invaluable for moving massive data around.
However, I've recently run into an area where I think rclone could benefit from some additional attention: checksum manifest compatibility, particularly when importing manifests generated by other established applications such as TeraCopy.
The problem
I maintain large archives containing hundreds of thousands of files and routinely use SHA256 manifests to verify data integrity after transfers to remote storage.
TeraCopy is exceptionally efficient at generating SHA256 checksums across large collections 4-5x faster than rclone including using --download when remote checksum metadata isn't available or reliable. the app can generate manifest in over 20 hash formats.
What I discovered was that getting the manifest into a format accepted by rclone required considerably more manual intervention than I expected.
In my particular case, the conversion involved several adjustments:
-
Converting the checksum records to the expected SUM-format spacing of SHA 64 HEX VALUES+space+space+file path.
-
Removing the UTF-8 BOM.
-
Converting Windows backslashes to Unix forward slashes.
-
Removing leading path separators such as / and */.
-
Removing a leading
#from certain directory names. -
final commandi used for reference was:
rclone checksum sha256 sha.manifest.filename.sha256 /onlne_Archive path --differ /differ.log --buffer-size 256M --fast-list --download --progress --checkers 12 --log-file rclone_check.log --log-level INFO
-
the version i was usnig at whatbox.ca is rclone 1.75.2
- os/version: gentoo 2.18 (64 bit)
- os/kernel: 6.18.57-gentoo-whatbox (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.27.1-X:nodwarf5
- go/linking: dynamic
- go/tags: none
Once these changes were made, the manifest worked and rclone successfully verified the remote file contents against the SHA256 values.
The hashes themselves were never the problem. The difficulty was getting the two applications to agree on the representation of the checksum records and filenames.
Suggested improvements
I'd like to suggest a few possible enhancements:
-
Broader manifest compatibility: Recognize common SHA256 manifest conventions produced by other widely used applications, including TeraCopy and standard GNU-style checksum utilities.
-
BOM tolerance: Automatically recognize and ignore a UTF-8 BOM at the beginning of a manifest.
-
Path normalization: Consider offering an optional mode to normalize Windows and Unix path separators and handle leading path separators where unambiguous.
-
Special-character handling: Ensure that filenames containing characters such as
#are handled as literal filename characters rather than being interpreted as syntax or metadata. -
More informative errors: When a manifest entry cannot be matched, provide a diagnostic that helps distinguish malformed checksum records from filename/path mismatches.
Why this matters
The current behavior can be particularly frustrating with large manifests.
When a manifest contains 250,000 entries, a minor formatting incompatibility can produce hundreds of thousands of sum not found errors. The resulting output gives the impression that the archive is missing files, when the actual problem may simply be how the manifest was formatted or interpreted.
A more tolerant parser, combined with clear diagnostics, would make rclone considerably more useful as a verification tool in mixed application environments.
I appreciate that strict parsing has advantages, particularly when data integrity is involved. I'm not suggesting that rclone should silently guess at ambiguous input. Rather, it would be useful to accept common, unambiguous checksum formats and explicitly report anything that cannot be interpreted safely.
Closing
I ultimately got the workflow working, and rclone successfully verified the actual remote file contents using --download.
I intend to continue using rclone, and this experience hasn't changed my opinion of the project. Quite the opposite: I think this is an opportunity to make an already excellent tool more interoperable and easier to use in real-world archival workflows.
Thank you to the developers and contributors for the work that goes into rclone. It's a tool I genuinely appreciate, and I hope this suggestion is useful.