Rclone是一款非常强大的网盘工具,能够帮助用户在终端界面管理包括Dropbox、Box、Onedrive、Gdrive、Mega等在内的主流网盘中的各类资源
同时实用的挂载功能能够把网盘挂载到本地(不支持OpenVZ)
“rsync for cloud storage” – Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex File
主页 https://rclone.org/
github https://github.com/ncw/rclone

#先在windows下操作
https://downloads.rclone.org/v1.44/rclone-v1.44-windows-amd64.zip
解压后再cmd下运行 rclone authorize “onedrive”
Got code
会弹出浏览器进行认真,完成后回到cmd,得到result

#安装
cd
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
rm -rf rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64
cp rclone /usr/bin/
chown root:root /usr/bin/rclone
chmod 755 /usr/bin/rclone
mkdir -p /usr/local/share/man/man1
cp rclone.1 /usr/local/share/man/man1/
mandb

配置
rclone config
新建-名称onedrive-选择18Microsoft OneDrive-id和secret留空-选择远程-贴入windows下的code

#挂载
mkdir -p /onedrive
rclone mount onedrive:disk /onedrive –copy-links –no-gzip-encoding –no-check-certificate –allow-other –allow-non-empty –umask 000
fusermount -qzu /onedrive #卸载
加入crontab开机自启:
@reboot rclone mount onedrive:disk /onedrive –copy-links –no-gzip-encoding –no-check-certificate –allow-other –allow-non-empty –umask 000

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code