Can I provide multipe team drive IDs via environment variables?

What is the problem you are having with rclone?

Question, not a problem. I can provide RCLONE_CONFIG_SOURCE_IMPERSONATE and RCLONE_CONFIG_TARGET_IMPERSONATE in the environment to impersonate two different users in order to move files between two My Drives. Now I'd like to do something similar for Shared Drives, where I provide the team drive ID for source and target. I just don't see any option for that.

I see RCLONE_DRIVE_TEAM_DRIVE, but that seems like a single ID that would apply to both the source and target, similar to specifying --drive-team-drive on the command line.

What is your rclone version (output from rclone version)


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 Drive

Just use RCLONE_CONFIG_SOURCE_TEAM_DRIVE and RCLONE_CONFIG_DEST_TEAM_DRIVE that should work, where source: and dest: are the name of the remotes.

1 Like

Thanks. Is it the general case that I can replace DRIVE in any RCLONE_DRIVE_* environment variable with CONFIG_${REMOTE}? In other words:


Yes - see the docs here:

1 Like

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