Skip to content

Instantly share code, notes, and snippets.

@vicente-gonzalez-ruiz
Last active February 6, 2023 04:45
Show Gist options
  • Save vicente-gonzalez-ruiz/33f1edd271a4cc27bf894daab66c16ec to your computer and use it in GitHub Desktop.
Save vicente-gonzalez-ruiz/33f1edd271a4cc27bf894daab66c16ec to your computer and use it in GitHub Desktop.
  1. Install rclone:
$ sudo pacman -S rclone (Manjaro)
  1. Get your token (see https://gist.github.com/vicente-gonzalez-ruiz/bb60df302ab8a5493995fc1541a2e724):
rclone config
<n> (New remote)
<mygdrive>
<18> (Google Drive)
<xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com> (your token here)
<xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> (secret found clicking in the entry for OAuth 2.0 Client IDs)
<1> (Full access)
<Enter> (service_account_file)
<Enter> (advanced config -> No)
<Enter> (Use web browser to automatically authenticate rclone with remote)
<your email account at google> (inside of the new web browser window)
<your password>
<click "Allow"> (rclone wants to access your Google Account)
<close the authentification ewb browser window> (if you can read "Success!")
<n> (Shared Drive ... usually unshared)
<y> (Keep this "mygdrive" remote?)
<q> (Quit config)

If everything went well, this:

rclone listremotes

should output:

mydrive:

Mount Google Drive:

mkdir google_drive
rclone -vv mount mydrive: ~/google_drive

Umount Google Drive with:

fusermount -u google_drive/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment