I've been using rclone for a while now to migrate data from onprem and regularly make use of the impersonate feature to move home directories to Gooogle Drive MyDrives.
My question is, can I impersonate both the source and the destination endpoints? I've created endpoints for both google tenants and confirmed they are working. I've tried a few variations of commands but I think I've reached a point where I need some expert advice.
Here's the command I tried that seems closest:
rclone copy HomeO:--drive-impersonate source@email.com HomeN:Test --drive-impersonate destination@email.com -P -v --dry-run
Too many arguments, which is fair. Is there something I can do to pass the identities for both endpoints?
rclone v1.69.2
- os/version: Microsoft Windows Server 2022 Standard 21H2 21H2 (64 bit)
- os/kernel: 10.0.20348.3932 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.24.2
- go/linking: static
- go/tags: cmount
Both storage points are Google Workspace home drives.
[HomeN]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
service_account_file = C:\Users\gareth\Downloads\smooth-comfort-459715-p0-198bc000b8e1.json
team_drive =
[HomeO]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
service_account_file = C:\Users\gareth\Downloads\leafy-environs-468012-k0-8e734d0205b8.json
team_drive =
A log from the command that you were trying to run with the -vv
flag
Command copy needs 2 arguments maximum: you provided 3 non flag arguments: ["HomeO:--drive-impersonate" "source@email.com" "HomeN:Test"]