# How to Use Rclone Script to Copy Files From Team Drive to Team Drive | 2020

**URL:** <https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810>\
**Category:** Tutorials & Methods\
**Tags:** tips-tricks\
**Created:** [June 19, 2020, 2:32pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810 "2020-06-19T14:32:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waga](https://onehack.st/user_avatar/onehack.st/waga/32/27787_2.png) [@Waga](https://onehack.st/u/Waga)\
**Post date:** [June 19, 2020, 2:32pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/1 "2020-06-19T14:32:59Z")

</div>

**Introduction** |

Hello guys. EduTechTainMent is here to show you guys how to use rclone script to copy files from Team Drive to Team Drive seamlessly. Rclone is the best option for noobs.

This is particularly important if you are facing problems setting up any of the other alternatives that allow for copying terabytes of data without the daily 750Gb limit of Google- such as AutoRclone, Folderclone and Gclone. These other methods make use of service accounts. AutoRclone is particularly popular.

**Why Use This Method**

**1. It** will **take about 3** to 5 minutes to set this up and running.

1. You can programmatically copy all files/folders in a team drive to your own personal team drive.

2. You don’t need to add service accounts to the source team drive. This is a huge bottleneck for many because AutoRclone mostly require you to copy SA into both the source and destination TD, but most TD administrators/owners restrict this access.

3. Your copying task continues from where it left off the previous day if you reach your daily maximum transfer cap of 750Gb.

4. You can however bypass this by having more than one Google account linked to the team drive (after all Google accounts are free to open).

5. One of the many reasons why I love using this method is that it affords me the opportunity to have fine-grained control of the files I wish to copy and not just copy all the useful and some useless (at least to me) files in the source team drives since many are publicly sourced. A lot of TD admins/owners are battling with the task of organizing files in their TD. From the very get-go, you can choose where you want your files to go- such as Movies folder, Series folder, Courses folder, Books, etc.

**Pre-requisites**

1. [Rclone](https://rclone.org/downloads/) remotes should be set up for both your team drive and the source team drive. Read how to set it up here.

2. [AirExplorer app](https://anonfiles.com/L4Ld9646o4/Air.Explorer.Pro.2.9.0_rar). | [Read about it here](https://edutechtainment.com/guides/how-to-mount-and-manage-your-cloud-remote-drives-on-your-local-pc/).

3. [Notepad++](https://notepad-plus-plus.org/downloads/)

4. Basic knowledge of Rclone commands.

5. Windows PC (obviously)

### **TL:DR |** EduTechTainMent Giffy Guides

#### Setting up Rclone remote

[https://imgur.com/JhGwH1C](https://imgur.com/JhGwH1C)

#### Setting Up Notepad++ and Running Rclone Script

[https://imgur.com/0bMviU7](https://imgur.com/0bMviU7)

#### Optional- Modifying Rclone Script

[https://imgur.com/FyBLuqs](https://imgur.com/FyBLuqs)

#### Read the Full-text and pictorial Guide here:

[EduTechTainMent | How to Use Rclone Script to Copy Files From Team Drive to Team Drive | 2020](https://edutechtainment.com/guides/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/)

Cheers!!!

> **… And Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.**

---

<div class="post-metadata">

**Author:** ![Himanshu\_Vashisht](https://onehack.st/user_avatar/onehack.st/himanshu_vashisht/32/79523_2.png) [@Himanshu\_Vashisht](https://onehack.st/u/Himanshu_Vashisht)\
**Post date:** [June 19, 2020, 2:42pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/2 "2020-06-19T14:42:48Z")

</div>

thanks bro i needed this very badly

---

<div class="post-metadata">

**Author:** ![DemonAngels](https://onehack.st/user_avatar/onehack.st/demonangels/32/19276_2.png) [@DemonAngels](https://onehack.st/u/DemonAngels)\
**Post date:** [June 19, 2020, 4:54pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/3 "2020-06-19T16:54:41Z")

</div>

thanks mate for this sharing 😄

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [June 19, 2020, 9:13pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/4 "2020-06-19T21:13:31Z")

</div>

thanks a lot for detailed tutorial

---

<div class="post-metadata">

**Author:** ![TheJoker](https://onehack.st/user_avatar/onehack.st/thejoker/32/22660_2.png) [@TheJoker](https://onehack.st/u/TheJoker)\
**Post date:** [June 19, 2020, 9:28pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/5 "2020-06-19T21:28:21Z")

</div>



---

<div class="post-metadata">

**Author:** ![Fabricio\_Gomes](https://onehack.st/user_avatar/onehack.st/fabricio_gomes/32/38418_2.png) [@Fabricio\_Gomes](https://onehack.st/u/Fabricio_Gomes)\
**Post date:** [June 19, 2020, 9:37pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/6 "2020-06-19T21:37:47Z")

</div>

Hi I have a doubt. If a have 10 accounts in both source and destination TD it´s means that i can copy 7.5 TB for day?

Is there any additional configuration that has to be done in the script to do this.

---

<div class="post-metadata">

**Author:** ![Waga](https://onehack.st/user_avatar/onehack.st/waga/32/27787_2.png) [@Waga](https://onehack.st/u/Waga)\
**Post date:** [June 19, 2020, 10:04pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/7 "2020-06-19T22:04:52Z")

</div>

Yes that’s what it means. None whatsoever, asides from the initial rclone remote creation and the script creation. Then you are good to go. It doesn’t take me 3 minutes to setup all the process. Subsequently I just run my script and that’s it. No stress of requesting for addition of SA from the TD owners.

I also use this method to copy from mega to TD or mega to edu gdrive or from gdrive to gdrive. Easy peazy!!!

Cheers!!!

> **… And Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.**

---

<div class="post-metadata">

**Author:** ![Jai\_Haniku](https://onehack.st/user_avatar/onehack.st/jai_haniku/32/18901_2.png) [@Jai\_Haniku](https://onehack.st/u/Jai_Haniku)\
**Post date:** [June 19, 2020, 11:26pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/8 "2020-06-19T23:26:50Z")

</div>

Thanks a lot and can I ask you a question? If I have a GDrive link of another person, can I make a server side copy directly to my own GDrive?

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [June 20, 2020, 7:00am UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/9 "2020-06-20T07:00:33Z")

</div>

wait wait wait…  
im little confused here..

lets say i have 10 google accounts, so how does rclone know which account’s 750gb limit is over? and how do i know that and change to next account?

and for mega, when i try to copy from mega to my td, it doesn’t copy server side, it uses my bandwidth and i dont have that much faster internet connectivity hence its useless, so do you have any idea to copy server side from mega to td?

---

<div class="post-metadata">

**Author:** ![Waga](https://onehack.st/user_avatar/onehack.st/waga/32/27787_2.png) [@Waga](https://onehack.st/u/Waga)\
**Post date:** [June 20, 2020, 7:47am UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/10 "2020-06-20T07:47:19Z")

</div>

Of course it would cos you will be creating different rclone remotes for the different Gmail accounts. Rclone copy command ignores directories when they are already present in the destination drive.

To know when you hit the daily upload limit of 750gb, just ad this to the last line in rclone.conf file of the remote:

`drive-stop-on-upload-limit = true`

This will also output a message notifying you the limit has been reached.

You can also add the server side flag to this list if you don’t want to do this via the command interface:

`drive-server-side-across-configs = true`.

For Mega to gdrive or TD, it will use your bandwidth. You can however utilise a vps to help out (yet to try it out on a vps personally though).

Perhaps I will create another guide on how to do this for easy reference.

Cheers!!!

> **… And Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.**

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [June 20, 2020, 7:59am UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/11 "2020-06-20T07:59:08Z")

</div>

> [@Waga](#):
>
> `drive-server-side-across-configs = true` .

you mean like this?

 ![rclone](https://onehack.st/uploads/default/original/3X/a/d/adfb57f1ef68bcb7d0fc76eae1d2ba1ccb5e61f2.png)

---

<div class="post-metadata">

**Author:** ![Waga](https://onehack.st/user_avatar/onehack.st/waga/32/27787_2.png) [@Waga](https://onehack.st/u/Waga)\
**Post date:** [June 20, 2020, 8:06am UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/12 "2020-06-20T08:06:41Z")

</div>

Yes you can. I will create another guide specifically to address this but here is a brief summary of what is expected of you.

Move all the files/folders you want to copy from the source gdrive into a new folder. Share this new folder with the other gdrive account you want to copy into.

Now run the following rclone command:

```
    rclone copy drive1:/shared_folder - -drive-shared-with-me drive1:/New_folder_name -server-side-across-configs -v -P

```

**Interpretation**

The -drive-shared-with-me flag allows rclone to access the shared drive portion in the gdrive account. This code simply copies the files in the shared folder and creates a new copy in your Google My Drive with full ownership and access control for the 2nd drive, independent of the 1st drive it was shared from. The flags will output the command execution details on the screen. Verbose -v shows (copied server side) that you are not using ur local Internet bandwidth and -P shows the task progress.

I hope you understand what I just explained. I will try and create a detailed **EduTechTainMent Giffy Guide** on how to go about doing this soon.

Cheers!!!

> **… And Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.**

---

<div class="post-metadata">

**Author:** ![Waga](https://onehack.st/user_avatar/onehack.st/waga/32/27787_2.png) [@Waga](https://onehack.st/u/Waga)\
**Post date:** [June 20, 2020, 8:11am UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/13 "2020-06-20T08:11:11Z")

</div>

💯

For best results when using gdrive, it is best practice to create your own client ID and client secret.

Edit your rclone remote after creating your client ID and secret using this guide:

> **[Google drive](https://rclone.org/drive/#making-your-own-client-id)**
>
> Rclone docs for Google drive

Cheers!!!

> **… And Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.**

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [June 20, 2020, 8:22am UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/14 "2020-06-20T08:22:34Z")

</div>

thanks a lot bro for your detailed instructions and guide, i really appreciate that.

im leaning new things here..

btw can i edit my already created remotes and use my own client id and secret as you mentioned above? if yes then how?

and after updating remotes with my client id and secret, do i need to update this in my aria2 settings via heroku?

---

<div class="post-metadata">

**Author:** ![Waga](https://onehack.st/user_avatar/onehack.st/waga/32/27787_2.png) [@Waga](https://onehack.st/u/Waga)\
**Post date:** [June 20, 2020, 8:28am UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/15 "2020-06-20T08:28:14Z")

</div>

Yes to all your Q.

1st open the cmd prompt in ur rclone folder and type

`rclone config`

Then chose **e** to edit the remote. Next select the remote you wish to edit.

Now visit the link above and create your client ID and secret. You will need to input this when you are asked in the rclone config creation/editing process.

Same way in heroku. Just go to settings, edit config and input those new lines from your rclone config. This step is very important in Heroku aria 2 used as a torrent leecher. It is what allows you to uploaded the downloaded torrents directly into your team drive or Google drive. Otherwise, your files get downloaded but don’t get uploaded to your TD.

Cheers!!!

> **… And Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.**

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [June 20, 2020, 8:59am UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/16 "2020-06-20T08:59:28Z")

</div>

im doing this now, one thing i wanna ask, what is root folder id in rclone config?  
my td has a root folder and everything is inside that folder.  
Its like My TD\>uploads\>All Folders and Files Here

Edit: I gave it id of my root folder and finished the configuration. But when i opened the rclone.config file its not yet updated, it has previously saved values. so im little confused here..

Edit2: I just noticed that its in the rclone folder, not in `C:\Users\User_Name\.config\rclone`

Edit3: I updated config in heroku settings, downloaded a file but its not showing in my td, i gave root folder id during config, and removed “file path” in heroku settings which was set to “uploads” earlier and i gave this folder id during rclone config. Am i missing here something?.

---

<div class="post-metadata">

**Author:** ![Waga](https://onehack.st/user_avatar/onehack.st/waga/32/27787_2.png) [@Waga](https://onehack.st/u/Waga)\
**Post date:** [June 20, 2020, 12:24pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/17 "2020-06-20T12:24:08Z")

</div>

Share SS of your heroku config.

Cc: @FlashyFlash your attention may be needed here.

Cheers!!!

> **… And Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.**

---

<div class="post-metadata">

**Author:** ![kimquan2kvn](https://onehack.st/user_avatar/onehack.st/kimquan2kvn/32/44588_2.png) [@kimquan2kvn](https://onehack.st/u/kimquan2kvn)\
**Post date:** [June 20, 2020, 2:51pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/18 "2020-06-20T14:51:27Z")

</div>

mega download only for a maximum of 5gb a day. So your way is also done right?

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [June 20, 2020, 3:06pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/19 "2020-06-20T15:06:28Z")

</div>

Thanks a lot dear for your continuous help.

I removed `root_folder_id` from config and added `RCLONE_DESTINATION` to `uploads` (as this is my root folder) and now its working fine.

Once again thanks a lot. Best of luck.

---

<div class="post-metadata">

**Author:** ![Jai\_Haniku](https://onehack.st/user_avatar/onehack.st/jai_haniku/32/18901_2.png) [@Jai\_Haniku](https://onehack.st/u/Jai_Haniku)\
**Post date:** [June 20, 2020, 3:25pm UTC](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810/20 "2020-06-20T15:25:56Z")

</div>

Thanks a lot for your reply. If I add the link to My Drive as shortcut ( instead of “shared with me” ) do I need to use the “–drive-shared-with-me” flag?

[Next page](https://onehack.st/t/how-to-use-rclone-script-to-copy-files-from-team-drive-to-team-drive-2020/92810.md?page=2)
