What is the problem you are having with rclone?
I use rclone to copy from Google Photos nightly to my NAS using the following command:
rclone copy gp-julia:media/by-year /photos_backup --fast-list --verbose --transfers 10
In the rclone output, there are a hundreds of Duplicate object found in source - ignoring
messages. Interestingly enough, if I search Google Photos for a sample of the filenames listed, I only ever get one photo or video back. There doesn't appear to be duplicates. Therefore, I decided to try running the following:
rclone dedupe rename "remote:/media/by-year"
And get the following output up front:
2022/08/26 16:12:19 NOTICE: Google Photos path "media/by-year": Can't have duplicate names here. Perhaps you wanted --by-hash ? Continuing anyway.
Note: I have also tried "gp-julia:media"
and `"gp-julia:Google Photos" with the same results
This eventually returns with the 100's of duplicates and states it ignores removing them, but then says All duplicates removed
? Here's a sample of the output I get from dedupe.
2022/08/26 16:01:19 NOTICE: 2020/2017-11-04_22.21.12 {AOkVttRGrIt1_F7CvsEvmCyCVdIekzRB2dvE9lWrmpMQmfJaWGXVvwvLAJZqoaVA2cjMv5w1Myluto3_Jw0yEqeZBUvQuuK3pA}.jpg: Found 2 files with duplicate names
2022/08/26 16:01:19 NOTICE: 2020/2017-11-04_22.21.12 {AOkVttRGrIt1_F7CvsEvmCyCVdIekzRB2dvE9lWrmpMQmfJaWGXVvwvLAJZqoaVA2cjMv5w1Myluto3_Jw0yEqeZBUvQuuK3pA}.jpg: Ignoring as it appears 2 times in the listing and deleting would lead to data loss
2022/08/26 16:01:19 NOTICE: 2020/2017-11-04_22.21.12 {AOkVttRGrIt1_F7CvsEvmCyCVdIekzRB2dvE9lWrmpMQmfJaWGXVvwvLAJZqoaVA2cjMv5w1Myluto3_Jw0yEqeZBUvQuuK3pA}.jpg: Ignoring as it appears 2 times in the listing and deleting would lead to data loss
2022/08/26 16:01:19 NOTICE: 2020/2017-11-04_22.21.12 {AOkVttRGrIt1_F7CvsEvmCyCVdIekzRB2dvE9lWrmpMQmfJaWGXVvwvLAJZqoaVA2cjMv5w1Myluto3_Jw0yEqeZBUvQuuK3pA}.jpg: All duplicates removed
2022/08/26 16:01:19 NOTICE: 2022/188755010014 {AOkVttQtHvs_sbgmBKr8RyDOKaRonFXlX154HxZiin_OmPOp5zP11_lSGv6vUbrsXGxs2eimlpWS0owKH-lWRzyn5mLRyatPQg}.jpg: Found 2 files with duplicate names
2022/08/26 16:01:19 NOTICE: 2022/188755010014 {AOkVttQtHvs_sbgmBKr8RyDOKaRonFXlX154HxZiin_OmPOp5zP11_lSGv6vUbrsXGxs2eimlpWS0owKH-lWRzyn5mLRyatPQg}.jpg: Ignoring as it appears 2 times in the listing and deleting would lead to data loss
2022/08/26 16:01:19 NOTICE: 2022/188755010014 {AOkVttQtHvs_sbgmBKr8RyDOKaRonFXlX154HxZiin_OmPOp5zP11_lSGv6vUbrsXGxs2eimlpWS0owKH-lWRzyn5mLRyatPQg}.jpg: Ignoring as it appears 2 times in the listing and deleting would lead to data loss
2022/08/26 16:01:19 NOTICE: 2022/188755010014 {AOkVttQtHvs_sbgmBKr8RyDOKaRonFXlX154HxZiin_OmPOp5zP11_lSGv6vUbrsXGxs2eimlpWS0owKH-lWRzyn5mLRyatPQg}.jpg: All duplicates removed
2022/08/26 16:01:19 NOTICE: 2021/2021-07-18-13-00-0005 {AOkVttTXxAGOFjwAUKNXCrsPfUZe5CZimb7l3GmyF_Gzw19G-XzMyFuG_vo2rAUDsf_Cq25J6wnQw9q4BBzBxudM1QB_yzde8w}.jpg: Found 2 files with duplicate names
2022/08/26 16:01:19 NOTICE: 2021/2021-07-18-13-00-0005 {AOkVttTXxAGOFjwAUKNXCrsPfUZe5CZimb7l3GmyF_Gzw19G-XzMyFuG_vo2rAUDsf_Cq25J6wnQw9q4BBzBxudM1QB_yzde8w}.jpg: Ignoring as it appears 2 times in the listing and deleting would lead to data loss
2022/08/26 16:01:19 NOTICE: 2021/2021-07-18-13-00-0005 {AOkVttTXxAGOFjwAUKNXCrsPfUZe5CZimb7l3GmyF_Gzw19G-XzMyFuG_vo2rAUDsf_Cq25J6wnQw9q4BBzBxudM1QB_yzde8w}.jpg: Ignoring as it appears 2 times in the listing and deleting would lead to data loss
2022/08/26 16:01:19 NOTICE: 2021/2021-07-18-13-00-0005 {AOkVttTXxAGOFjwAUKNXCrsPfUZe5CZimb7l3GmyF_Gzw19G-XzMyFuG_vo2rAUDsf_Cq25J6wnQw9q4BBzBxudM1QB_yzde8w}.jpg: All duplicates removed
I then re-run the rclone copy
command mentioned above and all duplicates still appear in the log output.
Run the command 'rclone version' and share the full output of the command.
rclone v1.59.1
- os/version: unknown
- os/kernel: 4.4.180+ (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.5
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Google Photos
The rclone config contents with secrets removed.
Editing existing "gp-julia" remote with options:
- type: google photos
- read_only: false
- token: {***REDACTED***}
- client_id: ***REDACTED***
- client_secret: ***REDACTED***
A log from the command with the -vv
flag
rclone_dedupe_output.log -- Run using rclone's token since I've exceeded my daily quota