Skip to content

Instantly share code, notes, and snippets.

@tanyuan
Created February 13, 2017 00:43
Show Gist options
  • Save tanyuan/eddfab586d012089c52c6ce0c9716d83 to your computer and use it in GitHub Desktop.
Save tanyuan/eddfab586d012089c52c6ce0c9716d83 to your computer and use it in GitHub Desktop.
rsync for Google Drive, Dropbox etc.

rclone

Setup

rclone config

Config file is stored at ~/.rclone.conf

List directories

rclone lsd remote:

List files recursively

rclone ls remote:path

Sync (one way)

rclone sync source:path dest:path

Copy (only diff)

rclone copy source:path dest:path

Check (safe)

rclone check source:path dest:path

Flags

Google Drive

--drive-formats pdf

--drive-use-trash

Filter

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