Skip to content

Instantly share code, notes, and snippets.

@fanurs
Created June 27, 2024 21:47
Show Gist options
  • Save fanurs/b2970bd05ee49bfcea2147446f39dfad to your computer and use it in GitHub Desktop.
Save fanurs/b2970bd05ee49bfcea2147446f39dfad to your computer and use it in GitHub Desktop.
Some common rclone (Google Drive)

Setup rclone for Google Drive on a Remote Linux Server

Installation

Install rclone:

sudo apt update
sudo apt install rclone

Configuration

Configure rclone with Google Drive

rclone config

Follow the prompts to authenticate via a web browser. Paste the provided token back into your terminal. For detailed setup including creating your own client ID for higher limits, visit: https://rclone.org/drive/#making-your-own-client-id

Usage

gdrive is the name of the remote you configured in the previous step, but you can use any name you like.

  1. List files:
    rclone ls gdrive:
  2. Copy files:
    rclone copy gdrive:path/to/file /local/path

Access to "Shared with Me" or "Shared Drives"

The simplest workaround is to simply copy the relevant files you want to access to your own Google Drive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment