Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

fix --ignore-checksum

Hisham Zarkab3a526814e8e
diff --git a/fs/operations.go b/fs/operations.go
index f91398039..a856e6f82 100644
--- a/fs/operations.go
+++ b/fs/operations.go
@@ -336,7 +336,7 @@ func Copy(f Fs, dst Object, remote string, src Object) (err error) {
if err != nil {
Stats.Error()
Errorf(dst, "Failed to read hash: %v", err)
- } else if !Config.IgnoreSize && !HashEquals(srcSum, dstSum) {
+ } else if !Config.IgnoreChecksum && !HashEquals(srcSum, dstSum) {
Stats.Error()
err = errors.Errorf("corrupted on transfer: %v hash differ %q vs %q", hashType, srcSum, dstSum)
Errorf(dst, "%v", err)