Installation#

Download and install rclone:

$ wget https://downloads.rclone.org/v1.51.0/rclone-v1.51.0-linux-amd64.rpm
$ rpm -i rclone-v1.51.0-linux-amd64.rpm

Configuration#

$ rclone config
...
n/r/c/s/q> n
name> remote
...
Storage> drive
...
client_id>
...
client_secret>
...
scope> 1
...
root_folder_id>
...
service_account_file>
...
y/n>
..
y/n>
...
y/n>
...
y/e/d>
...
e/n/d/r/c/s/q> q

Listing Directories#

To list top-level directories:

$ rclone lsd remote:

To list subdirectories in a directory:

$ rclone lsd remote:<path>

Listing Files#

To list files in a directory:

$ rclone ls remote:<path> --max-depth 1

Creating a Directory#

To create a remote directory:

$ rclone mkdir remote:<path>

Uploading Files#

To upload all files from a local directory to a remote directory:

$ rclone copy <path> remote:<path>

See Also#