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

operations: fix -u/--update with google photos / files of unknown size

Nick Craig-Wood530ba66d3532
diff --git a/fs/operations/operations.go b/fs/operations/operations.go
index 65fd1d8ff..8e5a9e707 100644
--- a/fs/operations/operations.go
+++ b/fs/operations/operations.go
@@ -1527,7 +1527,7 @@ func NeedTransfer(ctx context.Context, dst, src fs.Object) bool {
case dt <= -modifyWindow:
fs.Debugf(src, "Destination is older than source, transferring")
default:
- if src.Size() == dst.Size() {
+ if !sizeDiffers(src, dst) {
fs.Debugf(src, "Destination mod time is within %v of source and sizes identical, skipping", modifyWindow)
return false
}