Consistently getting "corrupted on transfer: sizes differ" syncing to an SMB share

@asdffdsa thanks for your help. I played with different configurations but unfortunately nothing works.

I did a bit of digging, it seems when rclone complains source file is being updated (size changed from x to y),

  1. x is always the same as the "size" (right click > properties) of the file in the VSS snapshot.
  2. y is the same as or close to "size on disk" (right click > properties) of the file in the VSS snapshot. The "size on disk" of the file in the VSS snapshot tends to be the same as the current "size on disk" of the file (i.e., not in the VSS snapshot).

Could this be related to how rclone gets the size of the file (i.e., os.Lstat and os.File.Stat) and the quirks of VSS? Might need some input from the maintainers of rclone to figure this out.