1.首先需要自己注册申请OneDrive的网盘
2.安装rclone模块挂载网盘
rclone没有ubuntu的安装库,所以一般状况下apt-get 无法直接安装,需要下载从https://rclone.org/downloads/下载
wget https://downloads.rclone.org/v1.46/rclone-v1.46-linux-amd64.deb
dpkg -i rclone-v1.46-linux-amd64.deb
3.配置OneDrive,允许外部api访问磁盘
Getting your own Client ID and Key
rclone uses a pair of Client ID and Key shared by all rclone users when performing requests by default. If you are having problems with them (E.g., seeing a lot of throttling), you can get your own Client ID and Key by following the steps below:
- Open https://apps.dev.microsoft.com/#/appList, then click
Add an app
(ChooseConverged applications
if applicable)