Limting rclone of Google Drive to my own files (i.e. not shared with me)

What is the problem you are having with rclone?

Rclone is running against my Google Drive. As well as 'my' files it is also copying files that I link to from other user's drives. Is there a way to limit it to my own hierarchy of files?

The folders that it is picking up are all shortcuts from 'My Drive' I'd like to be able to user clone on anything but these.

Thank you for any help, and the useful template.

Run the command 'rclone version' and share the full output of the command.

rclone v1.65.2

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 6.5.0-21-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.6
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone sync googledrive_tridral: /home/tridral/backup/googledrive_tridral/


Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

rclone v1.65.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.5.0-21-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none

A log from the command that you were trying to run with the -vv flag

<7>DEBUG : rclone: Version "v1.65.2" starting with parameters ["rclone" "-vv" "sync" "googledrive_tridral:" "/home/tridral/backup/googledrive_tridral/"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote "googledrive_tridral:"
<7>DEBUG : Using config file from "/home/tridral/.config/rclone/rclone.conf"
<7>DEBUG : Google drive root '': 'root_folder_id = <REDACTED>- save this in the config to speed up startup
<7>DEBUG : Creating backend with remote "/home/tridral/backup/googledrive_tridral/"
<7>DEBUG : fs cache: renaming cache item "/home/tridral/backup/googledrive_tridral/" to be canonical "/home/tridral/backup/googledrive_tridral"

Then it starts copying files

1 Like

Try --drive-auth-owner-only to only copy your own files

1 Like

Thank you very much Nick. That's just what I needed.

Best wishes,

'ö-Dzin

2 Likes

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