I am running Rclone version v1.54.0-beta.4766.75de30cfa on a Macbook pro to copy data from one Google Drive domain to another Google Drive domain for multiple users.
I have created two remotes which uses the service side as follows
[src] type = drive client_id = 10282619325030 scope = drive service_account_file = /Users/albert/rclone-servic7d7ea65a3e.json server_side_across_configs = true impersonate = email@example.com [dst] type = drive client_id = 10350927546194 scope = drive service_account_file = /Users/albert/rclone2-289113-4a53.json server_side_across_configs = true impersonate = firstname.lastname@example.org
I am able to copy the data using
rclone copy src: dst: --progress
My challenge is that I have to copy data between a lot of users of the two domains...like this:
email@example.com to firstname.lastname@example.org email@example.com to firstname.lastname@example.org email@example.com to firstname.lastname@example.org email@example.com to firstname.lastname@example.org
From this reply - Transferring files between two users of the same domain I see that I can use environment variables to override impersonate for src and for dst separately to change the users as follows
export RCLONE_CONFIG_SRC_IMPERSONATEemail@example.com export RCLONE_CONFIG_DST_IMPERSONATEfirstname.lastname@example.org
I want to know if it is possible to create a txt file with the following commands:
export RCLONE_CONFIG_SRC_IMPERSONATEemail@example.com export RCLONE_CONFIG_DST_IMPERSONATEfirstname.lastname@example.org rclone copy src: dst: --progress export RCLONE_CONFIG_SRC_IMPERSONATEemail@example.com export RCLONE_CONFIG_DST_IMPERSONATEfirstname.lastname@example.org rclone copy src: dst: --progress export RCLONE_CONFIG_SRC_IMPERSONATEemail@example.com export RCLONE_CONFIG_DST_IMPERSONATEfirstname.lastname@example.org rclone copy src: dst: --progress
and then run a single rclone command that calls the txt file. For example a command like
rclone batch filename.txt - I know this is wrong, but it is to give an idea of what I want to achieve.