Local disk to OneDrive: Error: sizes differ src

What is the problem you are having with rclone?

I am copying from a local disk to OneDrive. A lot of the files have been uploaded but alomst half the files are failing with this error:

NOTICE: Failed to copy with 19682 errors: last error was: corrupted on transfer: sizes differ src(Local file system at //?/D:/Shares/Administrasjon) 22016 vs dst(OneDrive root 'General/Administrasjon') 35840

Run the command 'rclone version' and share the full output of the command.

rclone v1.75.1

  • os/version: Microsoft Windows Server 2016 Standard 1607 (64 bit)
  • os/kernel: 10.0.14393.8957 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.26.8
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

OneDrive (Sharepoint library)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

 ```rclone.exe copy "D:\Shares\Administrasjon" "Sharepoint:/General/Administrasjon" --local-no-check-updated -P -c```

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

```[Sharepoint]
type = onedrive
token = XXX
drive_id = XXX
drive_type = documentLibrary```

sharepoint/onedrive does that a lot when it rewrites the file after upload (office docs, pdf preview, virus scan metadata). src 22k dst 35k smells like that.

id try:
-close anything that has those files open on the windows box
-rclone copy "D:\Shares\Administrasjon" "Sharepoint:/General/Administrasjon" --local-no-check-updated --ignore-size -P
-exclude locks if its office heavy: --exclude "~$" --exclude ".tmp"

if it still blows up paste one failing filename + rclone lsl on src and dst for that file.

Hi

--ignore-size worked :slight_smile:

welcome to the forum,

you can learn more about that issue in the documentation
Unexpected file size/hash differences on Sharepoint