{"id":1736,"date":"2024-08-13T21:27:03","date_gmt":"2024-08-13T13:27:03","guid":{"rendered":"https:\/\/www.wurend.com\/?p=1736"},"modified":"2024-08-13T21:39:23","modified_gmt":"2024-08-13T13:39:23","slug":"rclone%e5%92%8calist%e6%8c%82%e8%bd%bd%e7%bd%91%e7%9b%98%e5%88%b0%e6%9c%ac%e5%9c%b0","status":"publish","type":"post","link":"https:\/\/www.wurend.com\/?p=1736","title":{"rendered":"rclone\u548calist\u6302\u8f7d\u7f51\u76d8\u5230\u672c\u5730"},"content":{"rendered":"\n<p>\u6700\u8fd1\u6298\u817e\u5bb6\u5ead\u5b58\u50a8\u8fd9\u5757\u65f6\uff0c\u611f\u89c9\u5927\u591a\u6570\u6587\u4ef6\u90fd\u5728<code>\u963f\u91cc\u4e91\u76d8<\/code>\uff0c<code>\u767e\u5ea6\u7f51\u76d8<\/code>\u8fd9\u4e9b\u516c\u5171\u7f51\u76d8\u91cc\uff0c\u5404\u79cdAPP\u7279\u522b\u9ebb\u70e6\uff0c\u6240\u4ee5\u60f3\u628a\u6240\u6709\u4e0d\u540c\u7684\u7f51\u76d8\u90fd\u653e\u5728\u4e00\u8d77\u8fdb\u884c\u7ba1\u7406\uff0c\u4e00\u76f4\u542c\u8bf4<code>alist<\/code>\u7684\u5927\u540d\uff0c\u8fd8\u6ca1\u6709\u7528\u8fc7\uff0c\u8fd9\u6b21\u5c31\u6765\u8bd5\u8bd5\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>github<\/code>\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/alist-org\/alist\">https:\/\/github.com\/alist-org\/alist<\/a><\/li><li><code>alist<\/code>\u4e3b\u9875\uff1a<a href=\"https:\/\/alist.nn.ci\/\">https:\/\/alist.nn.ci<\/a>\/<\/li><\/ul>\n\n\n\n<p>Alist\u901a\u8fc7docker\u90e8\u7f72\uff0c\u672c\u6587\u4e0d\u505a\u6b65\u9aa4\u5206\u6790\u3002<\/p>\n\n\n\n<div class=\"wp-block-pandastudio-title\"><div class=\"title_style_01\"><p>rclone<\/p><\/div><\/div>\n\n\n\n<p>\u5728\u8bbe\u7f6e\u597d<code>alist<\/code>\u4e4b\u540e\uff0c\u56e0\u4e3a<code>alist<\/code>\u662f<code>webdav<\/code>\u7684\u5f62\u5f0f\uff0c<code>jellyfin<\/code>\u662f\u6ca1\u529e\u6cd5\u76f4\u63a5\u8bfb\u53d6\u7684\uff0c\u6240\u4ee5\u9700\u8981\u5c06<code>alist<\/code>\u6302\u8f7d\u5230\u672c\u5730\uff0c\u4f9b<code>jellyfin<\/code>\u4f7f\u7528\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>github<\/code>\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/rclone\/rclone\">https:\/\/github.com\/rclone\/rclone<\/a><\/li><li><code>rclone<\/code>\u4e3b\u9875\uff1a<a href=\"https:\/\/rclone.org\/\">https:\/\/rclone.org\/<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-pandastudio-title\"><div class=\"title_style_01\"><p>\u5b89\u88c5rclone<\/p><\/div><\/div>\n\n\n\n<p>\u5b89\u88c5<code>rclone<\/code>\u6211\u6ca1\u6709\u4f7f\u7528<code>docker<\/code>\u8fdb\u884c\u90e8\u7f72\uff0c\u4e3b\u8981\u662f\u56e0\u4e3a\u8981\u6302\u8f7d\u5728\u5bbf\u4e3b\u673a\u4e0a\uff0c\u6765\u56de\u6620\u5c04\u8def\u5f84\u76f8\u5bf9\u6765\u8bf4\u6bd4\u8f83\u9ebb\u70e6\u3002\u6240\u4ee5\u6211\u5c31\u6839\u636e<code>rclone<\/code>\u7684\u5b98\u65b9\u6559\u7a0b\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5b89\u88c5\u4f9d\u8d56<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install fuse3<\/code><\/pre>\n\n\n\n<p>\u4e3b\u4f53\u5b89\u88c5<\/p>\n\n\n\n<p>\u65b9\u5f0f\u4e00\uff1a\u811a\u672c\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/www.moerats.com\/usr\/shell\/rclone_debian.sh &amp;&amp; bash rclone_debian.sh<\/code><\/pre>\n\n\n\n<p>\u65b9\u5f0f\u4e8c\uff1a\u4e8c\u8fdb\u5236\u6587\u4ef6\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u521b\u5efarclone\u76ee\u5f55\r\nmkdir \/opt\/rclone\r\n\r\n# \u8fdb\u5165\u8be5\u76ee\u5f55\r\ncd \/opt\/rclone\r\n\r\n# \u4e0b\u8f7drclone\u9884\u7f16\u8bd1\u4e8c\u8fdb\u5236\u6587\u4ef6\u538b\u7f29\u5305\r\ncurl -O https:\/\/downloads.rclone.org\/rclone-current-linux-amd64.zip\r\n\r\n# \u89e3\u538b\r\nunzip rclone-current-linux-amd64.zip\r\n\r\n# \u5c06rclone\u4e8c\u8fdb\u5236\u6587\u4ef6\u653e\u5165\/usr\/bin\u76ee\u5f55\u4e0b\r\ncp rclone \/usr\/bin\/\r\n\r\n# \u6388\u6743\r\nchmod 755 \/usr\/bin\/rclone\r\n\r\n# \u9a8c\u8bc1\u662f\u5426\u6210\u529f\uff0c\u663e\u793a\u7248\u672c\u53f7\u8bc1\u660e\u6210\u529f\r\nrclone --versio\r\n<\/code><\/pre>\n\n\n\n<div class=\"wp-block-pandastudio-title\"><div class=\"title_style_01\"><p>\u8bbe\u7f6erclone<\/p><\/div><\/div>\n\n\n\n<p>\u8981\u5c06<code>alist<\/code>\u6302\u8f7d\u5230\u672c\u5730\uff0c\u5148\u8981\u8bbe\u7f6e<code>rclone remote<\/code>\uff0c<a href=\"https:\/\/rclone.org\/webdav\/\">rclone\u6587\u6863<\/a>\u8bf4\u7684\u6bd4\u8f83\u6e05\u6670\uff0c\u53ef\u4ee5\u8ddf\u7740\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u8fdb\u5165rclone\u8bbe\u7f6e\r\nrclone config\r\n\r\n# \u9009\u62e9\u65b0\u8fdc\u7a0b\r\nNo remotes found, make a new one?\r\nn) New remote\r\ns) Set configuration password\r\nq) Quit config\r\nn\/s\/q> n #\u8fd9\u91cc\u9009\u62e9n\r\n\r\n# \u8bbe\u7f6e\u540d\u5b57\r\nname> alist\r\nType of storage to configure.\r\nChoose a number from below, or type in your own value\r\n&#91;snip]\r\nXX \/ WebDAV\r\n   \\ \"webdav\"\r\n&#91;snip]\r\nStorage> webdav #\u8fd9\u91cc\u8f93\u5165\u8fdc\u7a0b\u7684\u540d\u5b57\uff0c\u4e4b\u540e\u5c31\u662f\u4f60\u7684\u8fdc\u7a0b\u540d\u79f0\r\n\r\n# \u8bbe\u7f6e\u8fdc\u7a0b\u5730\u5740url http:\/\/your_alist_ip:port\/dav\r\nURL of http host to connect to\r\nChoose a number from below, or type in your own value\r\n 1 \/ Connect to example.com\r\n   \\ \"https:\/\/example.com\"\r\nurl> http:\/\/127.0.0.1:8080\/dav #\u8fd9\u91cc\u8bbe\u7f6ealist\u7684\u5730\u5740\u548c\u7aef\u53e3\uff0c\u540e\u9762\u8981\u5e26dav\uff0c\u8fd9\u662falist\u8981\u6c42\u7684\r\n\r\n# \u8fd9\u91cc\u90096\u5c31\u53ef\u4ee5\u4e86\uff0c1-5\u90fd\u4e0d\u662f\u6211\u4eec\u4f7f\u7528\u7684\r\nName of the WebDAV site\/service\/software you are using\r\nChoose a number from below, or type in your own value\r\n 1 \/ Fastmail Files\r\n   \\ (fastmail)\r\n 2 \/ Nextcloud\r\n   \\ (nextcloud)\r\n 3 \/ Owncloud\r\n   \\ (owncloud)\r\n 4 \/ Sharepoint Online, authenticated by Microsoft account\r\n   \\ (sharepoint)\r\n 5 \/ Sharepoint with NTLM authentication, usually self-hosted or on-premises\r\n   \\ (sharepoint-ntlm)\r\n 6 \/ Other site\/service or software\r\n   \\ (other)\r\nvendor> 6\r\n\r\n# \u8bbe\u7f6e\u8fdc\u7a0b\u8d26\u53f7\r\nUser name\r\nuser> admin #\u8fd9\u91cc\u662f\u4f60alist\u7684\u5bc6\u7801\r\n\r\n# \u8bbe\u7f6e\u8fdc\u7a0b\u5bc6\u7801\r\nPassword.\r\ny) Yes type in my own password\r\ng) Generate random password\r\nn) No leave this optional password blank\r\ny\/g\/n> y #\u8fd9\u91cc\u8f93\u5165y\r\nEnter the password: #\u8fd9\u8f93\u5165\u4f60\u7684\u5bc6\u7801\uff0c\u5bc6\u7801\u662f\u770b\u4e0d\u5230\u7684\r\npassword:\r\nConfirm the password: #\u518d\u6b21\u8f93\u5165\u4f60\u7684\u5bc6\u7801\r\npassword:\r\n\r\n# \u8fd9\u91cc\u76f4\u63a5\u56de\u8f66\u5373\u53ef\r\nBearer token instead of user\/pass (e.g. a Macaroon)\r\nbearer_token>\r\nRemote config\r\n\r\n# \u8fd9\u91cc\u53ef\u80fd\u4f1a\u95ee\u4f60\u662f\u9ed8\u8ba4\u8fd8\u662f\u9ad8\u7ea7\uff0c\u9009\u62e9\u9ed8\u8ba4\u5373\u53ef\r\n\r\n# \u4f60\u7684\u8fdc\u7a0b\u4fe1\u606f\r\n--------------------\r\n&#91;alist]\r\ntype = webdav\r\nurl = http:\/\/127.0.0.1:8080\/dav\r\nvendor = Other\r\nuser = admin\r\npass = *** ENCRYPTED ***\r\n--------------------\r\n\r\n# \u786e\u8ba4\r\ny) Yes this is OK\r\ne) Edit this remote\r\nd) Delete this remote\r\ny\/e\/d> y #\u8f93\u5165y\u5373\u53ef\uff0c\r\n\r\n# \u6700\u540e\u6309q\u9000\u51fa\u8bbe\u7f6e\r\n<\/code><\/pre>\n\n\n\n<div class=\"wp-block-pandastudio-title\"><div class=\"title_style_01\"><p>\u6302\u8f7d\u5230\u672c\u5730<\/p><\/div><\/div>\n\n\n\n<p>\u67e5\u770b\u662f\u5426\u8fde\u63a5\u6210\u529f\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u786e\u8ba4\u662f\u5426\u5df2\u7ecf\u6302\u8f7d\u4e0a\u4e86<code>alist<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u67e5\u770balist\u7684\u76ee\u5f55\r\nrclone lsd alist:\r\n\r\n# \u67e5\u770balist\u7684\u6587\u4ef6\r\nrclone ls alist:\r\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-pandastudio-title\"><div class=\"title_style_01\"><p>\u540e\u53f0\u6a21\u5f0f\u6302\u8f7d\u5230\u672c\u5730<\/p><\/div><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5c06alist\u6302\u8f7d\u5230\u672c\u5730\u76ee\u5f55 \/webdav\r\n# --daemon \u5f3a\u5236\u540e\u53f0\u6a21\u5f0f\r\nrclone mount alist:\/ \/mnt\/webdav  --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --use-mmap --daemon\r\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-pandastudio-title\"><div class=\"title_style_01\"><p>\u89e3\u9664\u672c\u5730\u6302\u8f7d<\/p><\/div><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code># \u89e3\u9664\u672c\u5730\u6302\u8f7d\uff0c\u540e\u9762\u8ddf\u7684\u662f\u6302\u8f7d\u7684\u672c\u5730\u76ee\u5f55\r\n# \u5f53\u81ea\u52a8\u53d6\u6d88\u6302\u8f7d\u5931\u8d25\u65f6\uff0c\u4e5f\u53ef\u4ee5\u8fd9\u6837\u624b\u52a8\u53d6\u6d88\u6302\u8f7d\r\nfusermount -qzu \/mnt\/webdav\r\n<\/code><\/pre>\n\n\n\n<div class=\"wp-block-pandastudio-title\"><div class=\"title_style_01\"><p>\u5f00\u673a\u81ea\u52a8\u6302\u8f7d<\/p><\/div><\/div>\n\n\n\n<p>\u4e0a\u9762\u7684\u624b\u52a8\u6302\u8f7d\u65b9\u5f0f\uff0c\u5728\u673a\u5668\u91cd\u542f\u540e\uff0c\u5c31\u5931\u6548\u4e86\uff0c\u6bcf\u6b21\u90fd\u8981\u624b\u52a8\u5728\u8bbe\u7f6e\u4e00\u904d\uff0c\u5f88\u9ebb\u70e6\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>service<\/code>\u6587\u4ef6\u6765\u8fdb\u884c\u81ea\u52a8\u6302\u8f7d\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8bbe\u7f6e<code>service<\/code>\u6587\u4ef6<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u521b\u5efaservice\u6587\u4ef6\r\nvim \/usr\/lib\/systemd\/system\/rclone.service\r<\/code><\/pre>\n\n\n\n<p>\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit] \r\nDescription=rclone\r\nBefore=docker.service\r\n\r\n&#91;Service] \r\nUser=root \r\nExecStart=\/usr\/bin\/rclone mount alist: \/mnt\/webdav  --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --use-mmap\r\n\r\n&#91;Install] \r\nWantedBy=multi-user.target\r<\/code><\/pre>\n\n\n\n<p>\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># reload\u5b88\u62a4\u8fdb\u7a0b\r\nsystemctl daemon-reload\r\n\r\n# \u8bbe\u7f6eservice\u6587\u4ef6\u81ea\u542f\r\nsystemctl enable rclone.service\r\n\r\n# \u542f\u52a8service\u6587\u4ef6\r\nsystemctl start rclone.service\r\n<\/code><\/pre>\n\n\n\n<p>\u76f8\u5bf9\u6765\u8bf4<code>alist<\/code>\u914d\u7f6e\u8fd8\u662f\u6bd4\u8f83\u7b80\u5355\uff0c\u5f88\u5feb\u5c31\u80fd\u901a\u8fc7\u6587\u6863\u8bbe\u7f6e\u597d\u3002\u76f8\u5bf9\u6bd4\u8f83\u9ebb\u70e6\u7684\u662f<code>rclone<\/code>\uff0c\u4f1a\u51fa\u73b0\u62a5\u9519\u60c5\u51b5\uff0c\u53ea\u80fd\u4e00\u70b9\u4e00\u70b9\u6392\u67e5\uff0c\u5982\u679c\u6309\u7167\u6587\u6863\u8d70\uff0c\u5927\u6982\u7387\u53ef\u4ee5\u89c4\u907f\u6389\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u6298\u817e\u5bb6\u5ead\u5b58\u50a8\u8fd9\u5757\u65f6\uff0c\u611f\u89c9\u5927\u591a\u6570\u6587\u4ef6\u90fd\u5728\u963f\u91cc\u4e91\u76d8\uff0c\u767e\u5ea6\u7f51\u76d8\u8fd9\u4e9b\u516c\u5171\u7f51\u76d8\u91cc\uff0c\u5404\u79cdAPP\u7279\u522b\u9ebb\u70e6\uff0c\u6240\u4ee5\u60f3\u628a\u6240\u6709\u4e0d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1737,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[3,114,115],"class_list":["post-1736","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-4","tag-linux","tag-webdav","tag-115"],"_links":{"self":[{"href":"https:\/\/www.wurend.com\/index.php?rest_route=\/wp\/v2\/posts\/1736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wurend.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wurend.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wurend.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wurend.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1736"}],"version-history":[{"count":3,"href":"https:\/\/www.wurend.com\/index.php?rest_route=\/wp\/v2\/posts\/1736\/revisions"}],"predecessor-version":[{"id":1744,"href":"https:\/\/www.wurend.com\/index.php?rest_route=\/wp\/v2\/posts\/1736\/revisions\/1744"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wurend.com\/index.php?rest_route=\/wp\/v2\/media\/1737"}],"wp:attachment":[{"href":"https:\/\/www.wurend.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wurend.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wurend.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}