Reading database ... 81673 files and directories currently installed.) Preparing to unpack rclone-v1.62.2-linux-amd64.deb ... Unpacking rclone (1.62.2) ... Setting up rclone (1.62.2) ... Processing triggers for man-db (2.9.4-2) ...
当完成以上步骤时,安装即完成。
配置
输入rclone config,开始配置rclone。
1 2 3 4 5
No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q>
输入n,新建新的远端服务器,再输入要新建的配置名称。
1 2
Enter name for new remote. name>
此处根据所需要的存储类型进行配置,示例 31 onedrive。
1 2 3 4 5 6 7
Option Storage. Type of storage to configure. Choose a number from below, or type in your own value.
31 / Microsoft OneDrive \ (onedrive) Storage> 31
后续client_id和client_secret留空,直接回车跳过即可。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Option client_id. OAuth Client Id. Leave blank normally. Enter a value. Press Enter to leave empty. client_id>
Option client_secret. OAuth Client Secret. Leave blank normally. Enter a value. Press Enter to leave empty. client_secret>
Option region. Choose national cloud region for OneDrive. Choose a number from below, or type in your own string value. Press Enter for the default (global).
Edit advanced config? y) Yes n) No (default) y/n> n
Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N.
Option config_token. For this to work, you will need rclone available on a machine that has a web browser available. For more help and alternate methods see: https://rclone.org/remote_setup/ Execute the following on the machine with the web browser (same rclone version recommended): rclone authorize "onedrive" Then paste the result. Enter a value.
Option config_type. Type of connection Choose a number from below, or type in an existing string value. Press Enter for the default (onedrive). 1 / OneDrive Personal or Business \ (onedrive) 2 / Root Sharepoint site \ (sharepoint) / Sharepoint site name or URL 3 | E.g. mysite or https://contoso.sharepoint.com/sites/mysite \ (url) 4 / Search for a Sharepoint site \ (search) 5 / Type in driveID (advanced) \ (driveid) 6 / Type in SiteID (advanced) \ (siteid) / Sharepoint server-relative path (advanced) 7 | E.g. /teams/hr \ (path) config_type> 1
填写ID,默认即可。
1 2 3 4
Option config_driveid. Select drive you want to use Choose a number from below, or type in your own string value. Press Enter for the default.
持续确认直到回到rclone config页面,Rclone的配置即完成。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Drive OK?
Found drive "root" of type "business" URL:
y) Yes (default) n) No y/n> y
Configuration complete.
Keep this "onedrive" remote? y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y