全球主机交流论坛

标题: 微软最近又开始风控E3 A1等订阅 发一个转移只读文件的教程 [打印本页]

作者: Agoni    时间: 2023-2-22 15:03
标题: 微软最近又开始风控E3 A1等订阅 发一个转移只读文件的教程
这不一大早醒来发现OneDrive的文件全变成只读

这时大家肯定想到用https://mover.io/ rclone api等方法挂载OneDrive来转移文件 但是大部分人的账号出现只读后不能使用这二个工具
但是Webdav应该都可以用吧 我的账号出现只读后还是可以用Webdav的
这时 我们只需要准备一台Azure的机器安装上Rclone Webdav来对拷即可
机器配置1H2G即可 硬盘选64G 默认30G应该也够用 无需太高 实测这个配置完全够用

Rclone Webdav配置文件如下

  1. #挂载OneDrive为Webdav 适用于无api及只读状态
  2. 1、新建配置文件
  3. rclone config
  4. 选择WebDAV
  5. 输入:https://cxxx-my.sharepoint.com/personal/xy-n_mxxxx_org/Documents

  6. root@Test1:/usr/sju/sh# rclone config #新建配置文件
  7. Current remotes:

  8. Name                 Type
  9. ====                 ====
  10. cxxx_backup          onedrive
  11. sharepoint           webdav
  12. xy-23-02             webdav

  13. e) Edit existing remote
  14. n) New remote
  15. d) Delete remote
  16. r) Rename remote
  17. c) Copy remote
  18. s) Set configuration password
  19. q) Quit config
  20. e/n/d/r/c/s/q> n

  21. Enter name for new remote.
  22. name> xy-n #填写配置文件名称

  23. Option Storage.
  24. Type of storage to configure.
  25. Choose a number from below, or type in your own value.

  26. 46 / WebDAV
  27.    \ (webdav)
  28. 47 / Yandex Disk
  29.    \ (yandex)
  30. 48 / Zoho
  31.    \ (zoho)
  32. 49 / premiumize.me
  33.    \ (premiumizeme)
  34. 50 / seafile
  35.    \ (seafile)
  36. Storage> 46 #选择挂载类型WebDAV

  37. Option url.
  38. URL of http host to connect to.
  39. E.g. https://example.com.
  40. Enter a value.
  41. url> https://cxxx-my.sharepoint.com/personal/xy-n_mxxxx_org/Documents #填写url

  42. Option vendor.
  43. Name of the WebDAV site/service/software you are using.
  44. Choose a number from below, or type in your own value.
  45. Press Enter to leave empty.
  46. 1 / Nextcloud
  47.    \ (nextcloud)
  48. 2 / Owncloud
  49.    \ (owncloud)
  50. 3 / Sharepoint Online, authenticated by Microsoft account
  51.    \ (sharepoint)
  52. 4 / Sharepoint with NTLM authentication, usually self-hosted or on-premises
  53.    \ (sharepoint-ntlm)
  54. 5 / Other site/service or software
  55.    \ (other)
  56. vendor> 4 #OneDrive选择Sharepoint

  57. Option user.
  58. User name.
  59. In case NTLM authentication is used, the username should be in the format 'Domain\User'.
  60. Enter a value. Press Enter to leave empty.
  61. user> [email protected] #输入OneDrive账号

  62. Option pass.
  63. Password.
  64. Choose an alternative below. Press Enter for the default (n).
  65. y) Yes, type in my own password
  66. g) Generate random password
  67. n) No, leave this optional password blank (default)
  68. y/g/n> y #选y 输入OneDrive的密码
  69. Enter the password:
  70. password: #输入密码 盲打 屏幕不显示
  71. Confirm the password:
  72. password:

  73. Option bearer_token.
  74. Bearer token instead of user/pass (e.g. a Macaroon).
  75. Enter a value. Press Enter to leave empty.
  76. bearer_token> #按回车 默认即可

  77. Edit advanced config?
  78. y) Yes
  79. n) No (default)
  80. y/n> n #按n 不进行高级配置

  81. Configuration complete.
  82. Options:
  83. - type: webdav
  84. - url: https://cxxx-my.sharepoint.com/personal/xy-n_mxxxx_org/Documents
  85. - vendor: sharepoint-ntlm
  86. - user: [email protected]
  87. - pass: *** ENCRYPTED ***
  88. Keep this "xy-n" remote?
  89. y) Yes this is OK (default)
  90. e) Edit this remote
  91. d) Delete this remote
  92. y/e/d> y #确认配置文件 确认无误按y即可

  93. Current remotes:

  94. Name                 Type
  95. ====                 ====
  96. cxxx_backup          onedrive
  97. sharepoint           webdav
  98. xy-23-02             webdav
  99. xy-n                 webdav

  100. #这是刚创建的配置文件 不能直接用 需要手动修改vendor的值为sharepoint默认创建好的是sharepoint-ntlm
  101. [xy-n]
  102. type = webdav
  103. url = https://cxxx-my.sharepoint.com/personal/xy-n_mxxxx_org/Documents
  104. vendor = sharepoint
  105. user = [email protected]
  106. pass = xxxxxxxx
复制代码

作者: Agoni    时间: 2023-2-22 15:05
注意哈 不能直接复制配置文件 pass必须是加密后的 明文密码挂载会报错
作者: hiing    时间: 2023-2-22 15:05
OneDrive 只读的可以试试这个
https://4414.19990909.workers.dev/thread-1107852-1-1.html
(出处: 全球主机交流论坛)


管理员账号登录 https://learn.microsoft.com/zh-cn/sharepoint/troubleshoot/sites/site-is-read-only

临时可解
作者: xjack    时间: 2023-2-22 15:31
被BAN的A1带TAG吗?
作者: Agoni    时间: 2023-2-22 15:46
xjack 发表于 2023-2-22 15:31
被BAN的A1带TAG吗?

不带
作者: qqcool8    时间: 2023-2-22 15:59
非常感谢!
作者: van    时间: 2023-2-22 16:11
感谢分享,挺有用的
作者: 三丫的    时间: 2023-2-22 16:18
非常感谢
作者: Yzindex    时间: 2023-2-22 16:25
收藏了,希望用不上。
作者: WwzwW    时间: 2023-2-22 21:11
后排说一句,rclone默认的配置文件的路径是
  1. /root/.config/rclone/
复制代码

作者: 1652291305    时间: 2023-3-1 23:53
非常感谢




欢迎光临 全球主机交流论坛 (https://4414.19990909.workers.dev/) Powered by Discuz! X3.4