What is the problem you are having with rclone?
I am attempting to use rclone to sync between two Windows network shares. The shares are for example \\server\from and \\server\to. I have these mapped as network drives T:\ and U:\ respectively.
When running a sync command between the two the command runs very slowly despite the network speed being quite high. What I found was that rclone is computing md5 hashes of the files.
It's not clear to me why the hashes are being computed. The logging shows that the modification times of the files do differ (by a somewhat surprising amount), but the documentation would suggest (at least to me) that unless the --checksum flag is supplied, only file size and modification time is used to detect file equality. (Documentation)
I can confirm that this is the cause of the slowdown by either using --modify-window=10s or --size-only. In both cases the command completes very quickly as expected. You can also see that the log copied below also displays that a md5 was computed.
I suspect that if I just ran the command once the mod times would get updated and the next iteration would be fine. I'm also not debating on the use of --checksum. My question is why the md5 was computed at all.
In the off chance that the -n flag does everything except destructive changes, I also tested with supplying the --ignore-checksum flag, but the hashes were still computed.
Run the command 'rclone version' and share the full output of the command.
rclone v1.62.2
- os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
- os/kernel: 10.0.19045.2728 Build 19045.2728.2728 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.20.2
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Local filesystem to local filesystem (via network share)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync t:\ u:\ --progress --stats=10s -n --filter-from BackupExternalFilter.txt -vv
The rclone config contents with secrets removed.
A log from the command with the -vv
flag
2023/03/28 12:51:03 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "sync" "t:\\" "u:\\" "--progress" "--stats=10s" "-n" "--filter-from" "BackupExternalFilter.txt" "-vv"]
2023/03/28 12:51:03 DEBUG : Creating backend with remote "t:\\"
2023/03/28 12:51:03 DEBUG : Using config file from "C:\\Users\\fjih\\AppData\\Roaming\\rclone\\rclone.conf"
2023/03/28 12:51:03 DEBUG : fs cache: renaming cache item "t:\\" to be canonical "//?/t:/"
2023/03/28 12:51:03 DEBUG : Creating backend with remote "u:\\"
2023/03/28 12:51:03 DEBUG : fs cache: renaming cache item "u:\\" to be canonical "//?/u:/"
2023-03-28 12:51:03 DEBUG : $RECYCLE.BIN: Excluded
2023-03-28 12:51:03 DEBUG : $RECYCLE.BIN: Excluded
2023-03-28 12:51:03 DEBUG : Docker: Excluded
2023-03-28 12:51:03 DEBUG : Docker: Excluded
2023-03-28 12:51:03 DEBUG : OneDriveTemp: Excluded
2023-03-28 12:51:03 DEBUG : Store: Excluded
2023-03-28 12:51:03 DEBUG : System Volume Information: Excluded
2023-03-28 12:51:03 DEBUG : OneDriveTemp: Excluded
2023-03-28 12:51:03 DEBUG : Store: Excluded
2023-03-28 12:51:03 DEBUG : System Volume Information: Excluded
2023-03-28 12:51:03 DEBUG : BackUp/Virtual Machines/20230205/Venom-Server/Virtual Hard Disks/Venom-Server.vhdx: Modification times differ by -897.8216ms: 2023-02-05 12:53:35.8978216 -0800 PST, 2023-02-05 12:53:35 -0800 PST
2023-03-28 12:51:03 DEBUG : BackUp/Virtual Machines/20190624/Win10HomeScratch/Snapshots/144FFB65-B2BD-444E-BEFF-6C506E603059.vmcx: Modification times differ by -408.5146ms: 2019-06-24 00:21:54.4085146 -0700 PDT, 2019-06-24 00:21:54 -0700 PDT
2023-03-28 12:51:03 DEBUG : BackUp/Virtual Machines/20190624/Win10HomeScratch/Snapshots/144FFB65-B2BD-444E-BEFF-6C506E603059.vmgs: Modification times differ by -88.5141ms: 2019-06-24 00:21:54.0885141 -0700 PDT, 2019-06-24 00:21:54 -0700 PDT
2023-03-28 12:51:03 DEBUG : BackUp/Virtual Machines/20220308/Venom-Server/Virtual Machines/733931D5-5E97-4E26-9B66-E724BE1767A0.VMRS: Modification times differ by -911.6332ms: 2022-03-08 23:12:46.9116332 -0800 PST, 2022-03-08 23:12:46 -0800 PST
2023-03-28 12:51:04 DEBUG : BackUp/Virtual Machines/20230205/Venom-Server/Virtual Machines/733931D5-5E97-4E26-9B66-E724BE1767A0.vmcx: Modification times differ by -225.5415ms: 2023-02-05 12:53:36.2255415 -0800 PST, 2023-02-05 12:53:36 -0800 PST
2023-03-28 12:51:03 DEBUG : BackUp/Virtual Machines/20190624/Win10HomeScratch/Snapshots/144FFB65-B2BD-444E-BEFF-6C506E603059.VMRS: Modification times differ by -43.515ms: 2019-06-24 00:21:54.043515 -0700 PDT, 2019-06-24 00:21:54 -0700 PDT
2023-03-28 12:51:03 DEBUG : BackUp/Virtual Machines/20220308/Venom-Server/Virtual Hard Disks/Venom-Server.vhdx: Modification times differ by -771.7332ms: 2022-03-08 23:12:46.7717332 -0800 PST, 2022-03-08 23:12:46 -0800 PST
2023-03-28 12:51:03 DEBUG : BackUp/Virtual Machines/20220308/Venom-Server/Virtual Machines/733931D5-5E97-4E26-9B66-E724BE1767A0.vmcx: Modification times differ by -911.6333ms: 2022-03-08 23:12:46.9116333 -0800 PST, 2022-03-08 23:12:46 -0800 PST
2023-03-28 12:51:04 DEBUG : BackUp/Virtual Machines/20190624/Win10HomeScratch/Snapshots/144FFB65-B2BD-444E-BEFF-6C506E603059.vmcx: md5 = 8de7ddcc879c706a1857882134bc53ed OK
2023-03-28 12:51:04 NOTICE: BackUp/Virtual Machines/20190624/Win10HomeScratch/Snapshots/144FFB65-B2BD-444E-BEFF-6C506E603059.vmcx: Skipped update modification time as --dry-run is set (size 51.119Ki)
2023-03-28 12:51:04 DEBUG : BackUp/Virtual Machines/20190624/Win10HomeScratch/Snapshots/144FFB65-B2BD-444E-BEFF-6C506E603059.vmcx: Unchanged skipping
2023-03-28 12:51:04 DEBUG : BackUp/Virtual Machines/20230205/Venom-Server/Virtual Machines/733931D5-5E97-4E26-9B66-E724BE1767A0.VMRS: Modification times differ by -225.5414ms: 2023-02-05 12:53:36.2255414 -0800 PST, 2023-02-05 12:53:36 -0800 PST
2023-03-28 12:51:04 DEBUG : BackUp/Virtual Machines/20220308/Venom-Server/Virtual Machines/733931D5-5E97-4E26-9B66-E724BE1767A0.VMRS: md5 = 2a1abfcaa1ce7019c2259f8fab43348f OK
2023-03-28 12:51:04 NOTICE: BackUp/Virtual Machines/20220308/Venom-Server/Virtual Machines/733931D5-5E97-4E26-9B66-E724BE1767A0.VMRS: Skipped update modification time as --dry-run is set (size 28Ki)
2023-03-28 12:51:04 DEBUG : BackUp/Virtual Machines/20220308/Venom-Server/Virtual Machines/733931D5-5E97-4E26-9B66-E724BE1767A0.VMRS: Unchanged skipping