What is the problem you are having with rclone?
I'm noticing a lot of photos/images from Google photos being downloaded into media/by-month/1970/1970-01
folder incorrectly.
What is your rclone version (output from rclone version
)
$ rclone --version
rclone v1.56.0
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.4.0-80-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.5
- go/linking: static
- go/tags: none
$
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 20.04 64 bit
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 sync --transfers=10 --max-duration=59m --retries 1 --timeout 1m --fast-list --gphotos-include-archived --gphotos-start-year=1970 --log-level INFO --log-file=logfile.txt gphotos:media/by-month /FULL_PATH_REDACTED/media/by-month
Problem
I noticed more than ~28k images got downloaded into my media/by-month/1970/1970-01
local folder over the last few days via my rclone
cron script. Looking through the logs I see lots of images/photos that clearly aren't dated to be in the 1970s based on filename alone:
2021/07/29 01:24:45 INFO : 1970/1970-01/Screenshot_20190618-171319.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190612-091950.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190504-214251.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190618-101003.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190628-142016.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190225-121649.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190711-195259.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190628-142009.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190719-191252.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190711-201325.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190727-105449.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190725-160802.png: Copied (Rcat, new)
2021/07/29 01:24:46 INFO : 1970/1970-01/Screenshot_20190825-150217.png: Copied (Rcat, new)
2021/07/29 01:24:47 INFO : 1970/1970-01/Screenshot_20190825-150536.png: Copied (Rcat, new)
2021/07/29 01:24:47 INFO : 1970/1970-01/Screenshot_20190904-203310.png: Copied (Rcat, new)
2021/07/29 01:24:47 INFO : 1970/1970-01/Screenshot_20190825-150557.png: Copied (Rcat, new)
[TRUNCATED]
2021/07/29 01:31:17 INFO : 1970/1970-01/sr_2010-07-27_20-19-23_DSC_0403.JPG: Copied (Rcat, new)
2021/07/29 01:31:17 INFO : 1970/1970-01/sr_2010-07-08_10-06-09_DSC_6044.JPG: Copied (Rcat, new)
2021/07/29 01:31:17 INFO : 1970/1970-01/sr_2010-07-08_09-13-28_DSC_6038.JPG: Copied (Rcat, new)
2021/07/29 01:31:17 INFO : 1970/1970-01/sr_2010-07-08_11-31-46_DSC_6093.JPG: Copied (Rcat, new)
2021/07/29 01:31:17 INFO : 1970/1970-01/sr_2010-07-27_20-19-33_DSC_0405.JPG: Copied (Rcat, new)
2021/07/29 01:31:17 INFO : 1970/1970-01/sr_2010-04-01_18-21-04_DSC_9468-MOTION.gif: Copied (Rcat, new)
2021/07/29 01:31:17 INFO : 1970/1970-01/sr_2010-07-08_10-08-00_DSC_6060-MOTION.gif: Copied (Rcat, new)
2021/07/29 01:31:18 INFO : 1970/1970-01/sr_2010-09-20_20-08-17_DSC_2031.JPG: Copied (Rcat, new)
2021/07/29 01:31:18 INFO : 1970/1970-01/sr_2010-09-10_11-21-25_DSC_0647.JPG: Copied (Rcat, new)
2021/07/29 01:31:18 INFO : 1970/1970-01/sr_2010-09-17_16-05-59_DSC_0706.JPG: Copied (Rcat, new)
2021/07/29 01:31:18 INFO : 1970/1970-01/sr_2010-09-17_16-07-52_DSC_0725.JPG: Copied (Rcat, new)
2021/07/29 01:31:19 INFO : 1970/1970-01/sr_2010-09-20_20-11-40_DSC_2050.JPG: Copied (Rcat, new)
2021/07/29 01:31:19 INFO : 1970/1970-01/sr_2010-09-17_16-02-23_DSC_0675.JPG: Copied (Rcat, new)
2021/07/29 01:31:19 INFO : 1970/1970-01/sr_2010-10-08_07-52-52_DSC_9592.JPG: Copied (Rcat, new)
2021/07/29 01:31:19 INFO : 1970/1970-01/sr_2010-10-08_08-02-11_DSC_9610.JPG: Copied (Rcat, new)
2021/07/29 01:31:19 INFO : 1970/1970-01/sr_2010-09-17_16-07-16_DSC_0720.JPG: Copied (Rcat, new)
2021/07/29 01:31:19 INFO : 1970/1970-01/sr_2010-09-17_16-03-34_DSC_0683.JPG: Copied (Rcat, new)
2021/07/29 01:31:19 INFO : 1970/1970-01/sr_2010-10-08_08-16-07_DSC_9625.JPG: Copied (Rcat, new)
2021/07/29 01:31:20 INFO : 1970/1970-01/sr_2010-10-08_09-09-13_DSC_9654.JPG: Copied (Rcat, new)
2021/07/29 01:31:20 INFO : 1970/1970-01/sr_2010-10-08_08-16-37_DSC_9627.JPG: Copied (Rcat, new)
2021/07/29 01:31:20 INFO : 1970/1970-01/sr_2010-10-08_08-05-35_DSC_9611.JPG: Copied (Rcat, new)
2021/07/29 01:31:20 INFO : 1970/1970-01/sr_2010-10-08_09-33-31_DSC_9724.JPG: Copied (Rcat, new)
2021/07/29 01:31:20 INFO : 1970/1970-01/sr_2010-10-08_09-34-08_DSC_9732.JPG: Copied (Rcat, new)
2021/07/29 01:31:20 INFO : 1970/1970-01/sr_2010-10-08_09-32-36_DSC_9705.JPG: Copied (Rcat, new)
2021/07/29 01:31:21 INFO : 1970/1970-01/sr_2010-10-08_09-33-00_DSC_9714.JPG: Copied (Rcat, new)
I also manually checked via Google Photos UI and yes I don't have any photos going back to January 1970. I also haven't added anywhere near ~28k of new photos in the last few days - these are photos/images that were already part of my library that are being re-downloaded into the wrong year-month folder for some reason.
Using the filenames from above I did a quick spot check against previously downloaded images of the same name. The newly downloaded images are identical to the previously downloaded images for every random file name I checked (I didn't do an exhaustive check given there are 28k+ files and I was doing this manually):
$ find -type f -name sr_2010-10-08_09-33-00_DSC_9714.JPG -printf '%P\0' | xargs -r0 sha256sum
7b3e23875fcc97470524707be95f2bf78609c8d27f8aa08c706ead40fa5ed4d8 album/2010-10-08 - Urumqi to Seoul via Beijing - Plane_DONE/sr_2010-10-08_09-33-00_DSC_9714.JPG
7b3e23875fcc97470524707be95f2bf78609c8d27f8aa08c706ead40fa5ed4d8 media/by-month/1970/1970-01/sr_2010-10-08_09-33-00_DSC_9714.JPG
7b3e23875fcc97470524707be95f2bf78609c8d27f8aa08c706ead40fa5ed4d8 media/by-month/2010/2010-10/sr_2010-10-08_09-33-00_DSC_9714.JPG
$
Worries
Storage is thankfully not a worry as these are hash identical files and as I'm using ZFS with deduplication turned on I'm not really impacted by the duplicate downloads.
However my main worry is that rclone
will start deleting files from the correct media-month folder. So far my rclone
runs over the last few days have ended with Local file system at /FULL_PATH_REDACTED/media/by-month: not deleting files as there were IO errors
. As a result none of the local files have been deleted yet but this may not always remain true.
For example, the file above is currently in the 2010-10
folder and I fear that when rclone
has no more IO errors during its run, it will start deleting existing files in the 2010-10
folder because it thinks these have "moved" from 2010-10
to the 1970-01
folder for some reason.
I'm not sure if something within Google Photos API changed or within rclone.