What is the problem you are having with rclone?
I'd like to do the following (one or both):
- compare the remote against the hasher cache
- compare the checksums file against the hasher cache
I've tried running the command:
rclone checksum md5 "checksums.txt" hasher_main: --differ "DATA/diff_modified.txt"
However, it rather does the following:
- it updates the remote (not the checksums file) in the hasher cache
- it compares the remote (not the checksums file) against the checksums file (not the hasher cache)
I'm not sure if that's the intended behavior or a bug as this behavior seems strange to me for the following reasons:
-
#1 should be a part of 'rclone hashsum' rather than 'rclone checksum' responsibility, at least that's the behavior when running without the hasher, so possibly a bug (anyway #1 can already be achieved by running: rclone hashsum md5 hasher_01: > NUL)
-
#2 can already be achieved without the hasher by running: rclone checksum md5 "checksums.txt" "C:\Sync" --progress --differ "DATA/diff_modified.txt"
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
- os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
- os/kernel: 10.0.19045.3693 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
none
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
<create "aaa.txt file on remote>
rclone hashsum md5 "C:\Users\zac\Desktop\Sync" --output-file "DATA/checksums.txt"
rclone backend import hasher_main: md5 "DATA/checksums.txt" -vv -–log-file "DATA/log.txt"
rclone backend fulldump hasher_main:
<modify "aaa.txt" file on remote>
rclone checksum md5 "DATA/checksums.txt" hasher_main: --progress --differ "DATA/diff_modified.txt" -vv -–log-file "DATA/log.txt"
rclone backend fulldump hasher_main:
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[hasher_main]
type = hasher
remote = C:\Users\zac\Desktop\Sync
hashes = md5
max_age = off
A log from the command that you were trying to run with the -vv
flag
2024/03/26 22:58:18 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "backend" "import" "hasher_main:" "md5" "DATA/checksums.txt" "-vv" "--log-file" "DATA/log.txt"]
2024/03/26 22:58:18 DEBUG : Using config file from "C:\\Users\\zac\\AppData\\Roaming\\rclone\\rclone.conf"
2024/03/26 22:58:18 INFO : Hasher is EXPERIMENTAL!
2024/03/26 22:58:18 DEBUG : Creating backend with remote "C:/Users/zac/Desktop/Sync"
2024/03/26 22:58:18 DEBUG : fs cache: renaming cache item "C:/Users/zac/Desktop/Sync" to be canonical "//?/C:/Users/zac/Desktop/Sync"
2024/03/26 22:58:18 DEBUG : hasher::hasher_main:: Groups by usage: cached [md5], passed [], auto [], slow [md5, sha1, whirlpool, crc32, sha256, dropbox, hidrive, mailru, quickxor], supported [md5, sha1, whirlpool, crc32, sha256, dropbox, hidrive, mailru, quickxor]
2024/03/26 22:58:18 DEBUG : Creating backend with remote "DATA/checksums.txt"
2024/03/26 22:58:18 DEBUG : fs cache: adding new entry for parent of "DATA/checksums.txt", "//?/C:/Users/zac/Desktop/rclone/DATA"
2024/03/26 22:58:18 DEBUG : local~hasher.bolt: Opened for writing in 2.9331ms
2024/03/26 22:58:18 INFO : Summary: 1 imported, 0 skipped
2024/03/26 22:58:18 DEBUG : 3 go routines active
2024/03/26 22:58:32 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "checksum" "md5" "DATA/checksums.txt" "hasher_main:" "--progress" "--differ" "DATA/diff_modified.txt" "-vv" "--log-file" "DATA/log.txt"]
2024/03/26 22:58:32 DEBUG : Creating backend with remote "DATA/checksums.txt"
2024/03/26 22:58:32 DEBUG : Using config file from "C:\\Users\\zac\\AppData\\Roaming\\rclone\\rclone.conf"
2024/03/26 22:58:32 DEBUG : fs cache: adding new entry for parent of "DATA/checksums.txt", "//?/C:/Users/zac/Desktop/rclone/DATA"
2024/03/26 22:58:32 DEBUG : Creating backend with remote "hasher_main:"
2024/03/26 22:58:32 INFO : Hasher is EXPERIMENTAL!
2024/03/26 22:58:32 DEBUG : Creating backend with remote "C:/Users/zac/Desktop/Sync"
2024/03/26 22:58:32 DEBUG : fs cache: renaming cache item "C:/Users/zac/Desktop/Sync" to be canonical "//?/C:/Users/zac/Desktop/Sync"
2024/03/26 22:58:32 DEBUG : hasher::hasher_main:: Groups by usage: cached [md5], passed [], auto [], slow [md5, sha1, whirlpool, crc32, sha256, dropbox, hidrive, mailru, quickxor], supported [md5, sha1, whirlpool, crc32, sha256, dropbox, hidrive, mailru, quickxor]
2024/03/26 22:58:32 DEBUG : local~hasher.bolt: Opened for reading in 0s
2024/03/26 22:58:32 DEBUG : aaa.txt: getHash: fingerprint changed
2024/03/26 22:58:32 DEBUG : aaa.txt: slow md5
2024/03/26 22:58:32 DEBUG : local~hasher.bolt: released
2024/03/26 22:58:32 DEBUG : local~hasher.bolt: Opened for writing in 0s
2024/03/26 22:58:32 DEBUG : md5 = d41d8cd98f00b204e9800998ecf8427e (sum)
2024/03/26 22:58:32 DEBUG : aaa.txt: md5 = 594f803b380a41396ed63dca39503542 (hasher::hasher_main:)
2024/03/26 22:58:32 ERROR : aaa.txt: files differ
2024/03/26 22:58:32 NOTICE: hasher::hasher_main:: 1 differences found
2024/03/26 22:58:32 NOTICE: hasher::hasher_main:: 1 errors while checking
2024/03/26 22:58:32 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Checks: 1 / 1, 100%
Elapsed time: 0.1s
2024/03/26 22:58:32 DEBUG : 3 go routines active
2024/03/26 22:58:32 DEBUG : local~hasher.bolt: released
2024/03/26 22:58:32 Failed to checksum: 1 differences found