I am trying sync my two team drives, and it works great except for any file that is a google sheets. Whenever I sync, rclone ends up adding another copy of the google sheets and each time I run rclone sync it adds another one.
What is your rclone version (output from rclone version)
rclone v1.52.2
os/arch: windows/amd64
go version: go1.14.4
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 10, 64 bit
Which cloud storage system are you using? (eg Google Drive)
Google Team Drive synced to a backup Google Team Drive.
Both team drives are under the same google account.
The command you were trying to run (eg rclone copy /tmp remote:tmp)
I used the default configuration for a google drive except I created my own client ID and secret and I set it as a team drive configuration. Both team drives are accessed by the same google account and they both have the same client ID and secret.
The current file that I was duplicated in that log was called "Astronomy Test - Milton SciOly"
Further down the log (I didn't paste this part), it moves onto a different folder and the "Astronomy Test - redacted redacted.docx" is server side copied.
The main thing that stood out to me was
2020/08/14 22:11:57 DEBUG : Academic Resources/5. Misc/Science Convention/redacted Invitational 2020/Astronomy Test - redacted redacted.docx: Modification times differ by 532h51m25.568s: 2020-07-23 21:15:41.901 +0000 UTC, 2020-08-15 02:07:07.469 +0000 UTC
For some reason the file was marked with a different Modification time
Ok so I decided to run a test and I created a new folder called Test Folder and I included I google sheets called Test Google Sheets. I ran rsync and it looks like the debug does not update the copied google sheets modification time to. So each time I run it the modification time difference between the Original Google Sheets and the copy gets larger.
So I tried the --size-only flag and it solves the problem, but are there any downsides to this? If so is there a better way to solve this problem?
Hmm, this looks like a bug. It might be a bug in drive rather than rclone though.
Can you post your log in a new issue on GitHub please?
--size-only is not a good workaround. Doc files have unknown size so using size only degenerates to a file existence test which won't update the file if it changes
There isn't a good solution for this if setting the modtime on docs isn't working...
Sorry for the late response. I uploaded it as a bug on github.
I didn't realize that size only wouldn't catch file updates, thanks for your reply!
I tried the same command again this morning and the bug is still there. About a month ago, I think this type of copying worked fine, so I think you are right it is probably something google changed on their end.