kavo

Linux Centos7 下的 Onedrive 和世纪互联版在 linux 利用 rclone 同步文件

国际版登录:Office 365 Login | Microsoft Office

国际版管理:Microsoft Azure

国内:Sign in to your account

国内:Microsoft Azure 由世纪互联运营

注意国际版的

首先看国际版 onedrive 的:client_id>和client_secret> 填写为空。

国际版的比较简单,详细步骤如下:

1:首先我们需要先获取到onedrive的access_token

下载地址:https://rclone.org/downloads/下载win版本的Rclone,请下载自己的对应版本:

下载后解压,然后在解压的目录里按 Shif + 鼠标右键,选择 “在此处打开命令窗口”,然后在里面执行:

rclone authorize "onedrive"

接下来会打开默认浏览器,如果默认打开的为低版本 IE 浏览器,你也可以复制链接到新的浏览器当中,打开后会提示输入账号,然后输入密码,然后同意授权

出现以上表示成功,这时候你刚才打开的命令窗口中会出现如下:

你需要将以上连花括号在内的内容全部复制,然后利用任意编辑器合并为一行,因为接下来我们要放到 ssh 的命令窗口中,如过不换成一行,ssh 窗口会默认将换行作为执行命令。

接下来我们 ssh 模式登录服务器,首选需要安装依赖:

yum -y install wget unzip screen fuse fuse-devel

然后我们安装 rclone,官方教程:Rclone downloads

curl https://rclone.org/install.sh | sudo bash

成功安装后,我们开始执行命令配置:

rclone config

 这里我们选择新建

No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

 名字可随意输入,最后挂载要用,请记下

name> onedrive

选择要挂载的名称,因为是挂载 onedrive ,这里我们依照列表选择 23

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
 1 / 1Fichier
   \ "fichier"
 2 / Alias for an existing remote
   \ "alias"
 3 / Amazon Drive
   \ "amazon cloud drive"
 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
   \ "s3"
 5 / Backblaze B2
   \ "b2"
 6 / Box
   \ "box"
 7 / Cache a remote
   \ "cache"
 8 / Citrix Sharefile
   \ "sharefile"
 9 / Dropbox
   \ "dropbox"
10 / Encrypt/Decrypt a remote
   \ "crypt"
11 / FTP Connection
   \ "ftp"
12 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
13 / Google Drive
   \ "drive"
14 / Google Photos
   \ "google photos"
15 / Hubic
   \ "hubic"
16 / In memory object storage system.
   \ "memory"
17 / JottaCloud
   \ "jottacloud"
18 / Koofr
   \ "koofr"
19 / Local Disk
   \ "local"
20 / Mail.ru Cloud
   \ "mailru"
21 / Mega
   \ "mega"
22 / Microsoft Azure Blob Storage
   \ "azureblob"
23 / Microsoft OneDrive
   \ "onedrive"
24 / OpenDrive
   \ "opendrive"
25 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
26 / Pcloud
   \ "pcloud"
27 / Put.io
   \ "putio"
28 / QingCloud Object Storage
   \ "qingstor"
29 / SSH/SFTP Connection
   \ "sftp"
30 / Sugarsync
   \ "sugarsync"
31 / Transparently chunk/split large files
   \ "chunker"
32 / Union merges the contents of several remotes
   \ "union"
33 / Webdav
   \ "webdav"
34 / Yandex Disk
   \ "yandex"
35 / http Connection
   \ "http"
36 / premiumize.me
   \ "premiumizeme"

Storage> 23

下面就是client_id>和cl

posted on   下雨天唱情歌  阅读(21)  评论(0编辑  收藏  举报  

编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示