# Can rclone access and sync to 'Shared drives'?

**URL:** <https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761>\
**Category:** Help and Support\
**Created:** [July 5, 2019, 2:06pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761 "2019-07-05T14:06:26Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![obsidian](https://forum.rclone.org/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@obsidian](https://forum.rclone.org/u/obsidian)\
**Post date:** [July 5, 2019, 2:06pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/1 "2019-07-05T14:06:27Z")

</div>

![GD](https://forum.rclone.org/uploads/default/original/2X/b/b1f430074fc1772b06c80586404578e40f5909ba.png)

Hi, I have a question:

Can rclone access and sync to 'Shared drives'?

They don't appear on a normal drive and setting up a Team Drive doesn't give access to the 'Share' folder either.

`–drive-shared-with-me` gives access to 'Shared with me', but not to 'Shared drives \> Share'.

Also tried by adding the unique 'root ID' of the 'Share' and of a folder created in the Share. Also doesn't work and throws api errors when trying to send a file to that folder.

So, can 'Share' be accessed using rclone?

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [July 5, 2019, 2:10pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/2 "2019-07-05T14:10:24Z")

</div>

You'd authenticate on the user that has access to the shared drive and use --drive-shared-with-me.

You haven't shared your config/version/any useful out to help troubleshoot though so not sure.

---

<div class="post-metadata">

**Author:** ![obsidian](https://forum.rclone.org/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@obsidian](https://forum.rclone.org/u/obsidian)\
**Post date:** [July 5, 2019, 2:14pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/3 "2019-07-05T14:14:18Z")

</div>

Currently setup as follows:

> [drive]  
> type = drive  
> client\_id = X  
> client\_secret = X  
> scope = drive  
> token = X

> [crypt]  
> type = crypt  
> remote = drive:/Archive  
> filename\_encryption = standard  
> directory\_name\_encryption = true  
> password = X  
> password2 = X

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [July 5, 2019, 2:15pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/4 "2019-07-05T14:15:04Z")

</div>

Can you share the version you are using along with the command you are trying to run with debug (-vv) on it.

---

<div class="post-metadata">

**Author:** ![obsidian](https://forum.rclone.org/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@obsidian](https://forum.rclone.org/u/obsidian)\
**Post date:** [July 5, 2019, 2:17pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/5 "2019-07-05T14:17:44Z")

</div>

> C:\rclone\>rclone copy --drive-shared-with-me drive:/\_test crypt:/\_test -vv  
> 2019/07/05 15:16:18 DEBUG : rclone: Version "v1.48.0" starting with parameters ["rclone" "copy" "--drive-shared-with-me" "drive:/\_test" "crypt:/\_test" "-vv"]  
> 2019/07/05 15:16:18 DEBUG : Using config file from "C:\rclone\rclone.conf"  
> 2019/07/05 15:16:18 DEBUG : drive: Loaded invalid token from config file - ignoring  
> 2019/07/05 15:16:18 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-  
> 2019/07/05 15:16:18 DEBUG : drive: Saved new token in config file  
> 2019/07/05 15:16:19 ERROR : : error reading source directory: directory not found

`drive: Loaded invalid token from config file - ignoring`

Not sure about that error - I can access the drive fine using ls or rclone browser and the directories do exist.

Also, `rclone ls drive: --drive-shared-with-me` returns the content of the root folder, not the 'Shared folder': `3512218 Getting started`

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [July 5, 2019, 2:30pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/6 "2019-07-05T14:30:14Z")

</div>

Let's take a few steps back.

What does:

rclone lsd --drive-shared-with-me drive:

show

---

<div class="post-metadata">

**Author:** ![obsidian](https://forum.rclone.org/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@obsidian](https://forum.rclone.org/u/obsidian)\
**Post date:** [July 5, 2019, 2:31pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/7 "2019-07-05T14:31:23Z")

</div>

Oddly enough, nothing:

> H:\rclone\>rclone lsd --drive-shared-with-me drive:

H:\rclone\>

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [July 5, 2019, 2:34pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/8 "2019-07-05T14:34:58Z")

</div>

Seems it isn't shared with the account you are using:

```auto
[felix@gemini ~]$ rclone lsd GD: --drive-shared-with-me
          -1 2019-07-05 10:34:31 -1 Share
          -1 2019-07-05 10:33:55 -1 Test

```

---

<div class="post-metadata">

**Author:** ![obsidian](https://forum.rclone.org/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@obsidian](https://forum.rclone.org/u/obsidian)\
**Post date:** [July 5, 2019, 2:40pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/9 "2019-07-05T14:40:04Z")

</div>

I am the admin of both accounts - emails are added and if I send a file to 'Share', it appears on both shares immediately, so definitely not a perms issue.

To clarify: are 'Shared with me' and 'Share' the same thing?

---

<div class="post-metadata">

**Author:** ![obsidian](https://forum.rclone.org/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@obsidian](https://forum.rclone.org/u/obsidian)\
**Post date:** [July 5, 2019, 2:44pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/10 "2019-07-05T14:44:17Z")

</div>

I'm not convinced they are the same. here's why:

![GD2](https://forum.rclone.org/uploads/default/original/2X/e/e9d8fdc7c7643a1cc3cf179533e0e8d13138d44b.png)

H:\rclone\>rclone lsd drive: --drive-shared-with-me  
-1 2019-03-06 09:10:19 -1 random.txt

`--drive-shared-with-me` is listing only items that have been 'Shared with me' ... not items that are in the 'Share' folder.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [July 5, 2019, 3:00pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/11 "2019-07-05T15:00:08Z")

</div>

Try getting the ID of the shared drive from the URL bar, then putting it in `--drive-root-folder-id XXXX` - that will show whether you can access it or not from rclone.

What are those shared drives? Are they teamdrives? If so you need to configure them in the `rclone config` phase.

---

<div class="post-metadata">

**Author:** ![obsidian](https://forum.rclone.org/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@obsidian](https://forum.rclone.org/u/obsidian)\
**Post date:** [July 5, 2019, 3:04pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/12 "2019-07-05T15:04:49Z")

</div>

`rclone lsd drive: --drive-root-folder-id 8FbfYY6ghbeG7-XUkRPVA`

Returns a blank field ... so I guess it's not possible to access the 'Shared' folder directly.

'Shared drives' is 'Team drives' renamed?

---

<div class="post-metadata">

**Author:** ![obsidian](https://forum.rclone.org/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@obsidian](https://forum.rclone.org/u/obsidian)\
**Post date:** [July 5, 2019, 3:23pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/13 "2019-07-05T15:23:42Z")

</div>

Just to be sure, I created a brand new Team Drive called 'Share', added the Client ID and Secret and authorised Google via rclone:

> [Share]  
> type = drive  
> client\_id = X  
> client\_secret = X  
> scope = drive  
> token = X  
> team\_drive = Share

H:\rclone\>rclone lsd Share: --drive-shared-with-me  
2019/07/05 16:22:22 ERROR : : error listing: couldn't list directory: googleapi: Error 404: Shared drive not found: Share, notFound  
2019/07/05 16:22:22 Failed to lsd with 2 errors: last error was: couldn't list directory: googleapi: Error 404: Shared drive not found: Share, notFound

So does that confirm that a Shared drive / Team drive can't be accessed directly using rclone?

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [July 5, 2019, 3:33pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/14 "2019-07-05T15:33:53Z")

</div>

The `--drive-shared-with-me` flag is not necessary, and in fact will probably not work at all, for "Shared Drives" (aka Team Drives)

Also, the `team_drive` parameter should be the id of the drive visible in the UI when you click on the drive, not the name of the drive.

---

<div class="post-metadata">

**Author:** ![obsidian](https://forum.rclone.org/letter_avatar_proxy/v4/letter/o/51bf81/32.png) [@obsidian](https://forum.rclone.org/u/obsidian)\
**Post date:** [July 5, 2019, 3:42pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/15 "2019-07-05T15:42:52Z")

</div>

That's it darthShadow - thank you!

I couldn't see how/where to edit the `team_drive` parameter, so simply edited the rclone.conf to add the id of the drive ... and now it works:

> C:\rclone\>rclone lsd Share:  
> -1 2019-07-05 16:39:51 -1 testing

If using rclone to copy from gdrive1:Share \> gdrive2:Share, is the copy done server-side or locally?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [July 5, 2019, 5:31pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/16 "2019-07-05T17:31:02Z")

</div>

Oh yes Team drives are now Shared drives - that makes sense! So when you run through `rclone config` it should present a list of team drives for you to choose from.

![image](https://forum.rclone.org/uploads/default/original/2X/a/a81ee6cd8d742f5a96cc3c9efdf4fff8011cdd98.png)

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [October 3, 2019, 5:33pm UTC](https://forum.rclone.org/t/can-rclone-access-and-sync-to-shared-drives/10761/17 "2019-10-03T17:33:51Z")

</div>

Closed on October 3, 2019, 5:33pm UTC

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