I have remote1 and remote2 on two different GSuite accounts
I'm migrating all the users and drive files from remote1 to remote2
In order for me to restore the permissions via API i need a quick and efficient way to match the source file with the destination file.
Can't rely on modifying dates and name is too common.
I was able to update all the files in remote1 with their respective ID, the idea is that if the description transfers over using RClone then I can have a unique identifier for each one and i can cross reference the description with the old ID to know exactly which file it is and then I can apply the permissions applicable that I've downloaded from the source (I don't know how clear that is).
Using RClone 1.51 on Windows 10 64bits
I found this existing post which stopped at @ncw asking the user what purpose that would serve but it's so old i don't want to revive it.
I think if you do a server side copy, so enable --drive-server-side-across-configs when you do the copy the description should copy across. Can you try it?
I will def try that, but i would need a couple of information from you if you can help.
I'm not a programmer/scripter but i'll give it a try
Can you tell me:
What language is rclone based on (i'm guessing C since it's based on Rsync, but i'm not sure)?
in which file do I add that line of code (I checked in backend/drive/drive.go) but i don't see that block of code in there to add that line), so i'm guessing I have the wrong file?
What we do is a server side copy, so we say copy this object from here to here. When we do that with files the description copies too. When we do that with gdocs the description doesn't! We could potentially set the description for gdocs after the copy to work around this.
Is this something that would have to be coded or can it be included with a flag of some sort as I didn't see any flags to update the description?
Is there a way to print the fileID in the log? I know that it writes the MD5 sum, but if there's a way to add the ID instead, that could be beneficial and possibly a workaround.
I looked in the issue tracker yesterday to see if I can find any bugs listed for that issue and couldn't locate any.
I don't know if the componentid above (191650) is the ticket number, but the link gives me an access denied error.
It worked, it copied over the description for Google native files, thank you,
I have one last question, I noticed that every time i run the sync command it duplicates all google files, files which are not google native get skipped over and it recognizes that the file already there, but files which are google native it's as if it's unable to recognize that it exists and creates doubles, triples, etc...
is there a flag that can be used that will make it check the file before it creates a new copy?
I've merged this to master now which means it will be in the latest beta in 15-30 mins and released in v1.52
Hmm that shouldn't happen!
can you paste your rclone config removing secrets and the exact rclone command you are using? I suspect you are using --drive-shared-with-me which I think does that but I'm not sure.
The destination is a shared folder, but not the source, is there a reason why it does that? Maybe by understanding the logic I can work around it.
The reason I do it this way is because if I use for destination a remote that is not the same impersonated user, it skips over some files files with error "file not found" (and it seems to be the GSuite files that it skips)
ERROR : Dir/Userlistfil.xlsx: Failed to copy: googleapi: Error 404: File not found: 1JOUoO_Xm8GaO5qS_fljbwaryDFAXmdo3ZrYNScAy7ew., notFound
ERROR : Goldy.xlsx: Failed to copy: googleapi: Error 404: File not found: 1fi7OG4wpCbHyUPOszfH0OieVtfFysdED-SsVm7_M81k., notFound
Both of these files are native sheets not xlsx files.