I use rClone to backup all my files from Linux laptop to OneDrive Personal. However I am finding that JPEG photos that I have not changed are being re-uploaded to OnDrive.
rclone v1.50.2
- os/arch: linux/amd64
- go version: go1.14.4
Linux 5.8.0-50-generic #56-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
I use the following command:
rclone sync --copy-links /DATA/LOCAL/ onedrive:LOCAL
Simple config:
[onedrive]
type = onedrive
token = {"access_token":"stuff"}
drive_id = stuff
drive_type = personal
Here is the debug of when unchanged files are resynced:
2021/05/08 12:37:12 DEBUG : 20181225-060457-SW1-000.jpg: Sizes differ (src 8630795 vs dst 7400740)
2021/05/08 12:37:12 DEBUG : 20181225-060457-SW1-000.jpg: Starting multipart upload
2021/05/08 12:37:13 DEBUG : 20181225-060457-SW1-000.jpg: Uploading segment 0/8630795 size 8630795
2021/05/08 12:37:24 DEBUG : 20181225-060457-SW1-000.jpg: SHA-1 = 7221b4e84fad93c05df6fbb796dc6201cb23f536 OK
2021/05/08 12:37:24 INFO : 20181225-060457-SW1-000.jpg: Copied (replaced existing)
To my surprise the file size is different from the original!
After some analysis it looks like OneDrive is removing the MP Image Type (which accounts for most of the filesize change) and changing the XMP metdata data on some of the images. Specifically introducing MicrosoftPhoto:LastKeywordXMP. It also seems to change the image container as well (to JFIF standard 1.01)
I have done a full analysis with exiftool, but cannot link to the web page with the full results from here.
Oddly this does not happen all the time, and not always on the same files. Sometimes after changing the file after 5 uploads OneDrive will accept the original and not change it.
I sync around 400GB to OneDrive and this only happens on JPG image files. So I do not believe this is an rClone issue, but would be interested if others experience a similar issue.
I have raised a support case with Microsoft but am not getting much progress.