挂载家庭版
要点:Choose national cloud region for OneDrive. 时候 office 365 家庭版 选 1 !!
参考: https://rclone.org/onedrive/
❯ rclone configNo remotes found - make a new onen) New remotes) Set configuration passwordq) Quit confign/s/q> n # 选 nname> OneDriveXC # 随便起名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 Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, and Tencent COS \ "s3" 5 / Backblaze B2 \ "b2" 6 / Box \ "box" 7 / Cache a remote \ "cache" 8 / Citrix Sharefile \ "sharefile" 9 / Compress a remote \ "compress"10 / Dropbox \ "dropbox"11 / Encrypt/Decrypt a remote \ "crypt"12 / Enterprise File Fabric \ "filefabric"13 / FTP Connection \ "ftp"14 / Google Cloud Storage (this is not Google Drive) \ "google cloud storage"15 / Google Drive \ "drive"16 / Google Photos \ "google photos"17 / Hadoop distributed file system \ "hdfs"18 / Hubic \ "hubic"19 / In memory object storage system. \ "memory"20 / Jottacloud \ "jottacloud"21 / Koofr \ "koofr"22 / Local Disk \ "local"23 / Mail.ru Cloud \ "mailru"24 / Mega \ "mega"25 / Microsoft Azure Blob Storage \ "azureblob"26 / Microsoft OneDrive \ "onedrive"27 / OpenDrive \ "opendrive"28 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH) \ "swift"29 / Pcloud \ "pcloud"30 / Put.io \ "putio"31 / QingCloud Object Storage \ "qingstor"32 / SSH/SFTP Connection \ "sftp"33 / Sugarsync \ "sugarsync"34 / Tardigrade Decentralized Cloud Storage \ "tardigrade"35 / Transparently chunk/split large files \ "chunker"36 / Union merges the contents of several upstream fs \ "union"37 / Webdav \ "webdav"38 / Yandex Disk \ "yandex"39 / Zoho \ "zoho"40 / http Connection \ "http"41 / premiumize.me \ "premiumizeme"42 / seafile \ "seafile"Storage> 26 # 选 onedrive 编号** See help for onedrive backend at: https://rclone.org/onedrive/ **
OAuth Client IdLeave blank normally.Enter a string value. Press Enter for the default ("").client_id>OAuth Client SecretLeave blank normally.Enter a string value. Press Enter for the default ("").client_secret>Choose national cloud region for OneDrive.Enter a string value. Press Enter for the default ("global").Choose a number from below, or type in your own value 1 / Microsoft Cloud Global \ "global" 2 / Microsoft Cloud for US Government \ "us" 3 / Microsoft Cloud Germany \ "de" 4 / Azure and Office 365 operated by 21Vianet in China \ "cn"region> 1 # office 365 家庭版 选 1 !!Edit advanced config? (y/n)y) Yesn) No (default)y/n> # 默认选 n 可回车不填Remote configUse auto config? * Say Y if not sure * Say N if you are working on a remote or headless machiney) Yes (default)n) Noy/n> # 默认选 Yes 可回车不填, 打开浏览器,按照提示来If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=29MhLhoy7qmec56Ys7G3zALog in and authorize rclone for accessWaiting for code...Got codeChoose a number from below, or type in an existing value 1 / OneDrive Personal or Business \ "onedrive" 2 / Root Sharepoint site \ "sharepoint" 3 / Sharepoint site name or URL (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" 7 / Sharepoint server-relative path (advanced, e.g. /teams/hr) \ "path"Your choice> 1 # 选 1Found 1 drives, please select the one you want to use:0: (personal) id=xxxChose drive to use:> 0 # 选 0Found drive 'root' of type 'personal', URL: https://onedrive.live.com/?cid=05e616a666f633ebIs that okay?y) Yes (default)n) Noy/n> y 0 # 选 y 或者 回车--------------------[OneDriveXC]type = onedriveregion = globaltoken = {"access_token":"xxx","token_type":"xxx","refresh_token":xxx","expiry":"xxx"}drive_id = xxxdrive_type = personal--------------------y) Yes this is OK (default)e) Edit this remoted) Delete this remotey/e/d> yCurrent remotes:
Name Type==== ====OneDriveXC onedrive
e) Edit existing remoten) New remoted) Delete remoter) Rename remotec) Copy remotes) Set configuration passwordq) Quit confige/n/d/r/c/s/q> q
挂载教育版
要点:wav 方式挂载
❯ rclone configCurrent remotes:
Name Type==== ====xxxxxxxxxx onedrive
e) Edit existing remoten) New remoted) Delete remoter) Rename remotec) Copy remotes) Set configuration passwordq) Quit confige/n/d/r/c/s/q> n # 选 nname> xxxx # 随便起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 Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, and Tencent COS \ "s3" 5 / Backblaze B2 \ "b2" 6 / Box \ "box" 7 / Cache a remote \ "cache" 8 / Citrix Sharefile \ "sharefile" 9 / Compress a remote \ "compress"10 / Dropbox \ "dropbox"11 / Encrypt/Decrypt a remote \ "crypt"12 / Enterprise File Fabric \ "filefabric"13 / FTP Connection \ "ftp"14 / Google Cloud Storage (this is not Google Drive) \ "google cloud storage"15 / Google Drive \ "drive"16 / Google Photos \ "google photos"17 / Hadoop distributed file system \ "hdfs"18 / Hubic \ "hubic"19 / In memory object storage system. \ "memory"20 / Jottacloud \ "jottacloud"21 / Koofr \ "koofr"22 / Local Disk \ "local"23 / Mail.ru Cloud \ "mailru"24 / Mega \ "mega"25 / Microsoft Azure Blob Storage \ "azureblob"26 / Microsoft OneDrive \ "onedrive"27 / OpenDrive \ "opendrive"28 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH) \ "swift"29 / Pcloud \ "pcloud"30 / Put.io \ "putio"31 / QingCloud Object Storage \ "qingstor"32 / SSH/SFTP Connection \ "sftp"33 / Sugarsync \ "sugarsync"34 / Tardigrade Decentralized Cloud Storage \ "tardigrade"35 / Transparently chunk/split large files \ "chunker"36 / Union merges the contents of several upstream fs \ "union"37 / Webdav \ "webdav"38 / Yandex Disk \ "yandex"39 / Zoho \ "zoho"40 / http Connection \ "http"41 / premiumize.me \ "premiumizeme"42 / seafile \ "seafile"Storage> 37 # 选 wabdav 编号** See help for webdav backend at: https://rclone.org/webdav/ **
URL of http host to connect toEnter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value 1 / Connect to example.com \ "https://example.com"# 这个你可以直接通过登录 Onedrive,然后地址栏就会出现这样的地址:# https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/_layouts/15/onedrive.aspx# 其中 [YOUR-DOMAIN]、[YOUR-EMAIL] 是任意的,和你的学校以及邮箱有关,然后将上面的地址改写成:# https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Rclone# 这样的形式,其中 [YOUR-DOMAIN]、[YOUR-EMAIL] 就是前面地址中的域和 email。Documents 是 Onedrive 的一个目录,但我后来发现挂载的时候还是整盘挂载。url> https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/RcloneName of the Webdav site/service/software you are usingEnter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value 1 / Nextcloud \ "nextcloud" 2 / Owncloud \ "owncloud" 3 / Sharepoint Online, authenticated by Microsoft account. \ "sharepoint" 4 / Sharepoint with NTLM authentication. Usually self-hosted or on-premises. \ "sharepoint-ntlm" 5 / Other site/service or software \ "other"vendor> 3 # 选 3User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'.Enter a string value. Press Enter for the default ("").user> [YOUR-EMAIL] # 邮箱Password.y) Yes type in my own passwordg) Generate random passwordn) No leave this optional password blank (default)y/g/n> y # 用密码,选 yEnter the password:password: # 输入密码,看不见字,可其它地方输好复制,在这里粘贴Confirm the password:password: #Bearer token instead of user/pass (e.g. a Macaroon)Enter a string value. Press Enter for the default ("").bearer_token> # 空Edit advanced config? (y/n)y) Yesn) No (default)y/n>Remote config--------------------[OndriveEduHubu]type = webdavurl = https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Rclonevendor = sharepointuser = [YOUR-EMAIL]pass = *** ENCRYPTED ***--------------------y) Yes this is OK (default)e) Edit this remoted) Delete this remotey/e/d>Current remotes:
Name Type==== ====aaaaaaaaaaaaaa webdavxxxxxxxxxx onedrive
e) Edit existing remoten) New remoted) Delete remoter) Rename remotec) Copy remotes) Set configuration passwordq) Quit confige/n/d/r/c/s/q>