Moving files to an individual Google Drive on a GSuite Instance

What is the problem you are having with rclone?

I'm trying ot copy files into an individual's GDrive. I have an admin account on the instance, and created a service account, but I'm not sure how to invoke the command to do the move using the service account. Do I need to configure the user's individual GDrive as a remote first?

What is your rclone version (output from rclone version)

Rclone v1.53.3.

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows Server 2016

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)

I ran this command to test if I could make a directory first.

rclone -v --drive-impersonate user@mydomain.com mkdir  user@mydomain.com

The rclone config contents with secrets removed.

[Folder]
type = drive
scope = drive
root_folder_id =
 
[Archive Production]
type = drive
scope = drive
root_folder_id =
 
[Archive M_Z]
type = drive
scope = drive
root_folder_id =
 
[Archive 3]
type = drive
scope = drive
root_folder_id =
 
 
[Archive 5]
type = drive
scope = drive
root_folder_id =

A log from the command with the -vv flag

No log since the command didn't complete.

This looks like the right command.

Can you paste the output please with -vv please?

I don't see a service account setup in your config though?

Hi. Here's the missing part from the config; everything else is the same as pasted before.

[GDrive]
type = drive
scope = drive
service_account_file = C:\Users\useraccount\Desktop\rclone-306621-9708890cf3a5.json

As for the output from the command

C:\Users\useraccount\Desktop\rclone-v1.53.3-windows-amd64\rclone-v1.53.3-windows-amd64>rclone -vv --drive-impersonate someuser@mydomain.com lsf someuser@mydomain.com
2021/03/05 13:38:35 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "-vv" "--drive-impersonate" "someuser@mydomain.com" "lsf" "someuser@mydomain.com"]
2021/03/05 13:38:35 DEBUG : Creating backend with remote "someuser@mydomain.com"
2021/03/05 13:38:35 DEBUG : Using config file from "C:\Users\useraccount\.config\rclone\rclone.conf"
2021/03/05 13:38:35 DEBUG : fs cache: renaming cache item "someuser@mydomain.com" to be canonical "//?/C:/Users/useraccount/Desktop/rclone-v1.53.3-windows-amd64/rclone-v1.53.3-windows-amd64/someuser@mydomain.com"
2021/03/05 13:38:35 ERROR : : error listing: directory not found
2021/03/05 13:38:35 DEBUG : 2 go routines active
2021/03/05 13:38:35 Failed to lsf with 2 errors: last error was: error in ListJSON: directory not found

I'm guessing I need another way to specify the end-users GDrive or my syntax is missing some information.

perhaps i am wrong, as the other rcloners did not mention that rclone lsf require a remote.
for example,
rclone lsf GDrive:

Hi

I modified the command to include the GDrive Remote. It looks like it found a root folder ID but then didn't find a specified directory

C:\Users\useraccount\Desktop\rclone-v1.53.3-windows-amd64\rclone-v1.53.3-windows-amd64>rclone -vv --drive-impersonate someuser@mydomain.com lsf GDrive:someuser@mydomain.com
2021/03/05 13:54:08 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "-vv" "--drive-impersonate" "someuser@mydomain.com" "lsf" "GDrive:someuser@mydomain.com"]
2021/03/05 13:54:08 DEBUG : Using config file from "C:\Users\useraccount\.config\rclone\rclone.conf"
2021/03/05 13:54:08 DEBUG : Creating backend with remote "GDrive:someuser@mydomain.com"
2021/03/05 13:54:08 DEBUG : Google drive root 'someuser@mydomain.com': root_folder_id = removed for sanitization purposes - save this in the config to speed up startup
2021/03/05 13:54:09 ERROR : : error listing: directory not found
2021/03/05 13:54:09 DEBUG : 6 go routines active
2021/03/05 13:54:09 Failed to lsf with 2 errors: last error was: error in ListJSON: directory not found

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.