rclone
The manpage's 'Synopsis' provides a fast reference.
1
2We'll assume a folder in Google Drive called 'test', and local folder called 'foo'.
3
4Generate a config file with:
5
6```bash
7rclone config
Look at the contents of Google Drive:
1rclone ls gd:/
If rclone loses authorization:
1rclone authorization
List only directories:
1rclone lsf -dirs-only google:/
Mount the remote location on /tmp/google with:
1rclone mount google /tmp/google
Copy the contents of 'foo' to 'test'.
1rclone copy foo/ google:test
Sync contents of foo and test with a progress bar (will delete Google items):
1rclone sync foo google:test -P
Remove all duplicates
1rclone dedupe google:test
Delete contets of a remote file:
1rclone delete n:test
Or delete the folder and contents as well:
1rclone purge n:test
Copy to and from with:
1rclone copyto google:test foo
or
1rclone copyto foo google:test