= rclone =
 * https://rclone.org/
Rclone is a command line program to manage files on cloud storage. (Google drive)

== Debian setup ==
{{{#!highlight bash
sudo apt install rclone
rclone config
# n) New remote
n/s/q> n
name> remotedrive
#Type of storage to configure.
#Enter a string value. Press Enter for the default ("").
#Choose a number from below, or type in your own value
#12 / Google Drive
#   \ "drive"
Storage> 12
#** See help for drive backend at: https://rclone.org/drive/ **
#Google Application Client Id
#Leave blank normally.
#Enter a string value. Press Enter for the default ("").
client_id> 
#Google Application Client Secret
#Leave blank normally.
#Enter a string value. Press Enter for the default ("").
client_secret> 
#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
#ID of the root folder
#Leave blank normally.
#Fill in to access "Computers" folders. (see docs).
#Enter a string value. Press Enter for the default ("").
root_folder_id> 
#Service Account Credentials JSON file path 
#Leave blank normally.
#Needed only if you want use SA instead of interactive login.
#Enter a string value. Press Enter for the default ("").
service_account_file> 
#Edit advanced config? (y/n)
#y) Yes
#n) No
y/n> n
#Remote config
#Use auto config?
# * Say Y if not sure
# * Say N if you are working on a remote or headless machine or Y didn't work
#y) Yes
#n) No
y/n> y
#If your browser doesn't open automatically go to the following link: #http://127.0.0.1:53682/auth
#Log in and authorize rclone for access
#Waiting for code...
#Got code
# Configure this as a team drive?
# y) Yes
# n) No
y/n> y
#Fetching team drive list...
#Choose a number from below, or type in your own value
# 1 / XYZ Team
#   \ "..."
Enter a Team Drive ID> 1
#--------------------
#[remotedrive]
#scope = drive
#token = #{"access_token":"...","token_type":"Bearer","refresh_token":"...","expiry":"2???-#09-02T17:51:??.???+01:00"}
#team_drive = XXXXXYXYXY
#--------------------
#y) Yes this is OK
#e) Edit this remote
#d) Delete this remote
y/e/d> y
#Current remotes:
#Name                 Type
#====                 ====
#remotedrive          drive
#e) Edit existing remote
#n) New remote
#d) Delete remote
#r) Rename remote
#c) Copy remote
#s) Set configuration password
#q) Quit config
e/n/d/r/c/s/q> q

rclone listremotes
# remotedrive:
cd ~
mkdir ~/Documents/remotedrive
fusermount -u  ~/Documents/remotedrive
rclone mount remotedrive: Documents/remotedrive # ctrl+c to unmount/quit

}}}