Uploaded files on Google Photos has wrong modify and create date

What is the problem you are having with rclone?

Hello, I try to upload my photos to google Drive. Works good, but the modify date and create date is set to current upload time. But that's wrong and I would keep the original date.

I added set_modtime = false is that correct? I need the restart the copy process?

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

rclone v1.53.3-DEV
- os/arch: linux/amd64
- go version: go1.15.9

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

Google Photos

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

rclone copy /home/ncdata/data/lars/files/Kameraupload  photonew:upload/ --bwlimit 8.5M -P 

[photonew]
type = google photos
token = {"access_token":"longtoken","expiry":"2022-06-09T18:03:38.092877961+02:00"}
set_modtime = false
[gdrivenew]
type = drive
scope = drive
token = {"access_token":"longtoken"expiry":"2022-06-09T18:47:00.208540743+02:00"}
set_modtime = false

A log from the command with the -vv flag

2022-06-09 17:56:48 DEBUG : Google Photos path "upload": Waiting for checks to finish
2022-06-09 17:56:48 DEBUG : Google Photos path "upload": Waiting for transfers to
finish
2022-06-09 17:56:48 DEBUG : pacer: low level retry 1/10 (error Quota exceeded for
quota metric 'Write requests' and limit 'Write requests per minute per user' of service 'photoslibrary.googleapis.com' for consumer 'project_number:202264815644'. (429 RESOURCE_EXHAUSTED))
2022-06-09 17:56:48 DEBUG : pacer: Rate limited, increasing sleep to 1.025994784s
2022-06-09 17:56:48 DEBUG : pacer: low level retry 1/10 (error Quota exceeded for
quota metric 'Write requests' and limit 'Write requests per minute per user' of service 'photoslibrary.googleapis.com' for consumer 'project_number:202264815644'. (429 RESOURCE_EXHAUSTED))
2022-06-09 17:56:48 DEBUG : pacer: Rate limited, increasing sleep to 2.560781182s
2022-06-09 17:56:48 DEBUG : pacer: low level retry 2/10 (error Quota exceeded for
quota metric 'Write requests' and limit 'Write requests per minute per user' of service 'photoslibrary.googleapis.com' for consumer 'project_number:202264815644'. (429 RESOURCE_EXHAUSTED))
2022-06-09 17:56:48 DEBUG : pacer: Rate limited, increasing sleep to 4.695155437s
2022-06-09 17:56:49 DEBUG : pacer: low level retry 2/10 (error Quota exceeded for
quota metric 'Write requests' and limit 'Write requests per minute per user' of service 'photoslibrary.googleapis.com' for consumer 'project_number:202264815644'. (429 RESOURCE_EXHAUSTED))
2022-06-09 17:56:49 DEBUG : pacer: Rate limited, increasing sleep to 8.51113

the modify date and create date is set to current upload time

That is a limitation of Google Photos, as per docs:

The date shown of media in Google Photos is the creation date as determined by the EXIF information, or the upload date if that is not known.

This is not changeable by rclone and is not the modification date of the media on local disk. This means that rclone cannot use the dates from Google Photos for syncing purposes.

(Google Photos)

Okay thanks , then I must change this manually

I create the nextcloud server as an new source. Here are the Timestamps correct. With this command the pictures are correctly sorted uploaded to google photos.

rclone copy  nextcloud:/Kameraupload photonew:/upload --create-empty-src-dirs -vv

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.