Delicious rclone tutorial
The purpose
Google Drive is nice for students. We have infinite storage. So we need an easy way to store a lot of resources.
Installation
curl https://rclone.org/install.sh | sudo bash
Configuration
rclone config
Give your remote drive a name, for example, myDrive
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> myDrive
Select your drive type, here, I’m using google drive, so 13
Skip ‘client_id’ and ‘client_secret’ by using the enter key if you don’t know their meanings
Say you have full control over your drive
Scope that rclone should use when requesting access from drive.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
1 / Full access all files, excluding Application Data Folder.
\ "drive"
scope> 1
Skip “root_folder_id” and “service_account_file”
No advanced configuration
No auto-configuration
You’ll get a link, you need to visit it and get a code back
Then click whatever you like, in the end, you press q to quit
Copy a file from the cloud to local
rclone copy myDrive:me.jpg /home/yingshaoxo/
Copy a shared folder from google drive to your own google drive
Folder="豆瓣当当1700本付费读物 "
nohup rclone copy "myDrive:${Folder}" "myDrive:copy_of_${Folder}" -P &