Trying to copy a local folder to a subfolder of a Google Shared/Team Drive, I either can't get he syntax right or I'm using the wrong syntax and end up with either a 4xx error (GoogleSide) or the Directories get created individually under My Drive
What is your rclone version (output from rclone version)
The latest version I can use on macOS 10.10, rclone v1.54.1
os/arch: darwin/amd64
go version: go1.15.8
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
[drivemig]
type = drive
scope = drive
service_account_file = /path_to.json
I've also tried adding the team_drive = <DRIVEID_String
to the end
But I just can't seem to get the Syntax right to copy the whole directory 'JOBS 2019' (not subfolders) to a subfolder of the TeamDrive , e.g. TeamDrive/Company_Dept/
I'm confused though as it drivemig a drive or a team drive? You can configure a new team drive by running rclone config and picking a team drive through the process.
It looks like you are trying to copy to a regular drive but trying to force it to be a team drive.
this applies to all versions post 1.54.1, which seems to be when the arm/amd64 split happened)
as to the Team Drive configuration, I'm confused !!
I went to edit the config and it clearly shows a Team Drive ID, and at the end of the edit process, asks if I want to change the ID:
[drivemig]
type = drive
scope = drive
service_account_file = /Users/sadmin/<STRING..json
team_drive = <TEAM_DRIVE ID String>
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
Remote config
Change current Shared Drive (Team Drive) ID "<TEAM_DRIVE ID String>"?
y) Yes
n) No (default)
So is it just my rclone command syntax which is off here, or have I completely misconfigured the 'drivemig' remote?
That worked! missing out all the API stuff and just using the web OAUTH and specifying the root folder in the config by its ID
So, thank you, although this method will be slower than using the API that's OK . However one last question:
What syntax do I use to copy LOCALFolder1 to REMOTESUBFolder1 of the remote (where the root is defined as REMOTEFolder?)