初期設定: 例: Google Driveを使う
# ~/.config/rclone/rclone.conf が生成される
rclone config
# 新規なので 'n'
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
# 設定名: config name
name> gdrive
# ストレージ選択
11 / Google Drive
\ "drive"
Storage> 11
# 省略可なのでenter
Google Application Client Id - leave blank normally.
client_id>
# 省略可なのでenter
Google Application Client Secret - leave blank normally.
client_secret>
# 権限の指定: full, readonly等選べる
Scope that rclone should use when requesting access from drive.
Choose a number from below, or type in your own value
1 / Full access all files, excluding Application Data Folder.
\ "drive"
2 / Read-only access to file metadata and file contents.
\ "drive.readonly"
...
scope> 1
# アクセスさせるroot folderの指定: ブラウザでフォルダを開いた時のURLに表示されるID。自分所有だと省略出来るのでenter
ID of the root folder - leave blank normally. Fill in to access "Computers" folders. (see docs).
root_folder_id>
# 省略可なのでenter
Service Account Credentials JSON file path - leave blank normally.
Needed only if you want use SA instead of interactive login.
service_account_file>
# 認証: CLIでの認証なので 'n'
Remote config
Use auto config?
y/n> n
# 表示されたURLをコピペしてブラウザで開き、許可する
# ブラウザに表示されたコードをコピペ
Enter verification code>
# team driveかの設定
Configure this as a team drive?
y) Yes
n) No
y/n> n
# エントリを保存するかの設定
y/e/d> y
# 終了: q
e/n/d/r/c/s/q> q