rb666
April 5, 2020, 10:41am
1
I have been using the following script to sync recent upload to Google Photos to my syncthing setup, this allows me to always have recent photos available on my desktop.
rclone copy -vv --max-age 2h --no-traverse --fast-list Gphotos:media/by-month /mnt/fast/cache/gphotos --log-file=rclone.log
Since recently, it's not working anymore. I can't find any errors in the debug log either, it's just no longer finding the photos. Perhaps max-age does no longer work? I don't know, anyone have any clue?
ncw
(Nick Craig-Wood)
April 5, 2020, 11:52am
2
The modification time of google photos is the creation time of the photo.
You can use rclone lsl
to check the times are what you expect.
Failing recently makes me wonder if it started to go wrong when the clocks changed?
rb666
April 5, 2020, 9:14pm
3
I think it's been failing a bit longer than that, a few weeks at least. Also since I use -2h, that would be very odd regardless.
ncw
(Nick Craig-Wood)
April 8, 2020, 4:50pm
4
I guess it might have been a change at Google Photos... Maybe you could try some tests uploading some images and see what rclone date is compared to the image date and its exif created date?
calisro
(Rob)
April 8, 2020, 5:19pm
5
I just tried it and it seems to work for me.
rb666
April 10, 2020, 4:14pm
6
I uploaded a brand new file, then ran:
rclone lsl -vv --max-age 2h --no-traverse --fast-list Gphotos:media/by-month --log-file=rclone.log
Log:
2020/04/10 18:11:36 DEBUG : 2020/2020-04/IMG_1973.JPG: ModTime:
2020/04/10 18:11:36 DEBUG : 2020/2020-04/IMG_1973.JPG: >ModTime:
2020/04/10 18:11:36 DEBUG : 2020/2020-04/IMG_1973.JPG: Size:
2020/04/10 18:11:36 DEBUG : 2020/2020-04/IMG_1973.JPG: >Size:
2020/04/10 18:11:36 DEBUG : 2020/2020-04/IMG_1973.JPG: Excluded
Doesn't seem to help me much, is the command wrong?
calisro
(Rob)
April 10, 2020, 4:40pm
7
How did you upload the file?
rb666
April 10, 2020, 5:16pm
8
Using Google Photos app on IOS
ncw
(Nick Craig-Wood)
April 11, 2020, 12:28pm
9
Rclone should have produced some output showing dates and sizes of files? That won't have gone in the log.
Can you check the date here against the date you are expecting.
rb666
April 18, 2020, 4:24pm
10
Sorry for the slow reply, but the command does not create any output other than what I pasted:
[18:19 redbull@hlin ~] > rclone lsl -vv --max-age 2h --no-traverse --fast-list Gphotos:media/by-month --log-file=rclone.log
[18:20 redbull@hlin ~] >
Am I doing it wrong then?
calisro
(Rob)
April 18, 2020, 4:38pm
11
Did you look at the log? You specified a log.
rb666
April 18, 2020, 4:50pm
12
Well, I posted the log above, and then ncw replied: "That won't have gone in the log."... so now I'm even more confused.
calisro
(Rob)
April 18, 2020, 5:17pm
13
I think he meant to compare the dates between rclone lsf date, exif date (won't have gone in the log) and image dates.
rb666
April 18, 2020, 5:34pm
14
Hmm well the lsf command doesn't help me much:
[19:33 xx@hlin ~] > rclone lsf --format "tsp" -vv --max-age 2h Gphotos:media/by-month
2020/04/18 19:33:21 DEBUG : --max-age 2h0m0s to 2020-04-18 17:33:21.462923589 +0200 CEST m=-7199.991339980
2020/04/18 19:33:21 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "lsf" "--format" "tsp" "-vv" "--max-age" "2h" "Gphotos:media/by-month"]
2020/04/18 19:33:21 DEBUG : Using config file from "/home/xx/.config/rclone/rclone.conf"
2020/04/18 19:33:21 DEBUG : Google Photos path "media/by-month": List: dir=""
2020/04/18 19:33:21 DEBUG : Google Photos path "media/by-month": >List: err=
2020-04-18 19:33:21;-1;2000/
2020-04-18 19:33:21;-1;2001/
2020-04-18 19:33:21;-1;2002/
2020-04-18 19:33:21;-1;2003/
2020-04-18 19:33:21;-1;2004/
2020-04-18 19:33:21;-1;2005/
2020-04-18 19:33:21;-1;2006/
2020-04-18 19:33:21;-1;2007/
2020-04-18 19:33:21;-1;2008/
2020-04-18 19:33:21;-1;2009/
2020-04-18 19:33:21;-1;2010/
2020-04-18 19:33:21;-1;2011/
2020-04-18 19:33:21;-1;2012/
2020-04-18 19:33:21;-1;2013/
2020-04-18 19:33:21;-1;2014/
2020-04-18 19:33:21;-1;2015/
2020-04-18 19:33:21;-1;2016/
2020-04-18 19:33:21;-1;2017/
2020-04-18 19:33:21;-1;2018/
2020-04-18 19:33:21;-1;2019/
2020-04-18 19:33:21;-1;2020/
calisro
(Rob)
April 18, 2020, 5:47pm
15
That's saying it's not finding any pictures. It's an empty listing. So there's no pictures less than 2 hours old. So you think there is?
Why don't you look at the latest pictures in 2020 and compare all the dates.
system
(system)
Closed
June 18, 2020, 2:22pm
17
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.