Rclone
1 下载地址
1.1 下载对应连接
https://downloads.rclone.org/rclone-current-windows-amd64.zip
1.2 解压到目录
D:\Program Files\rclone\
2 配置环境变量
| 环境变量名称 | 路径 |
|---|---|
| PATH | D:\Program Files\rclone\ |
| RCLONE_CONFIG_DIR | D:\Program Files\rclone\ |
3 绿色版安装
rclone config paths --temp-dir "D:\Program Files\rclone\temp"
rclone config paths --cache-dir "D:\Program Files\rclone\"
4 配置挂载点
rclone config
n/s/q> n
Enter name for new remote.
name> NAS
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
1 / 1Fichier
\ (fichier)
2 / Akamai NetStorage
\ (netstorage)
3 / Alias for an existing remote
\ (alias)
4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, ChinaMobile, Cloudflare, DigitalOcean, Dreamhost, Exaba, FlashBlade, GCS, HuaweiOBS, IBMCOS, IDrive, IONOS, LyveCloud, Leviia, Liara, Linode, Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, RackCorp, Rclone, Scaleway, SeaweedFS, Selectel, StackPath, Storj, Synology, TencentCOS, Wasabi, Qiniu, Zata and others
\ (s3)
5 / Backblaze B2
\ (b2)
6 / Better checksums for other remotes
\ (hasher)
7 / Box
\ (box)
8 / Cache a remote
\ (cache)
9 / Citrix Sharefile
\ (sharefile)
10 / Cloudinary
\ (cloudinary)
11 / Combine several remotes into one
\ (combine)
12 / Compress a remote
\ (compress)
13 / DOI datasets
\ (doi)
14 / Dropbox
\ (dropbox)
15 / Encrypt/Decrypt a remote
\ (crypt)
16 / Enterprise File Fabric
\ (filefabric)
17 / FTP
\ (ftp)
18 / FileLu Cloud Storage
\ (filelu)
19 / Files.com
\ (filescom)
20 / Gofile
\ (gofile)
21 / Google Cloud Storage (this is not Google Drive)
\ (google cloud storage)
22 / Google Drive
\ (drive)
23 / Google Photos
\ (google photos)
24 / HTTP
\ (http)
25 / Hadoop distributed file system
\ (hdfs)
26 / HiDrive
\ (hidrive)
27 / ImageKit.io
\ (imagekit)
28 / In memory object storage system.
\ (memory)
29 / Internet Archive
\ (internetarchive)
30 / Jottacloud
\ (jottacloud)
31 / Koofr, Digi Storage and other Koofr-compatible storage providers
\ (koofr)
32 / Linkbox
\ (linkbox)
33 / Local Disk
\ (local)
34 / Mail.ru Cloud
\ (mailru)
35 / Mega
\ (mega)
36 / Microsoft Azure Blob Storage
\ (azureblob)
37 / Microsoft Azure Files
\ (azurefiles)
38 / Microsoft OneDrive
\ (onedrive)
39 / OpenDrive
\ (opendrive)
40 / OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)
\ (swift)
41 / Oracle Cloud Infrastructure Object Storage
\ (oracleobjectstorage)
42 / Pcloud
\ (pcloud)
43 / PikPak
\ (pikpak)
44 / Pixeldrain Filesystem
\ (pixeldrain)
45 / Proton Drive
\ (protondrive)
46 / Put.io
\ (putio)
47 / QingCloud Object Storage
\ (qingstor)
48 / Quatrix by Maytech
\ (quatrix)
49 / SMB / CIFS
\ (smb)
50 / SSH/SFTP
\ (sftp)
51 / Sia Decentralized Cloud
\ (sia)
52 / Storj Decentralized Cloud Storage
\ (storj)
53 / Sugarsync
\ (sugarsync)
54 / Transparently chunk/split large files
\ (chunker)
55 / Uloz.to
\ (ulozto)
56 / Union merges the contents of several upstream fs
\ (union)
57 / Uptobox
\ (uptobox)
58 / WebDAV
\ (webdav)
59 / Yandex Disk
\ (yandex)
60 / Zoho
\ (zoho)
61 / iCloud Drive
\ (iclouddrive)
62 / premiumize.me
\ (premiumizeme)
63 / seafile
\ (seafile)
Storage> webdav
Option url.
URL of http host to connect to.
E.g. https://example.com.
Enter a value.
url> https://webdev.aming.work:5244
Option vendor.
Name of the WebDAV site/service/software you are using.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / Fastmail Files
\ (fastmail)
2 / Nextcloud
\ (nextcloud)
3 / Owncloud 10 PHP based WebDAV server
\ (owncloud)
4 / ownCloud Infinite Scale
\ (infinitescale)
5 / Sharepoint Online, authenticated by Microsoft account
\ (sharepoint)
6 / Sharepoint with NTLM authentication, usually self-hosted or on-premises
\ (sharepoint-ntlm)
7 / rclone WebDAV server to serve a remote over HTTP via the WebDAV protocol
\ (rclone)
8 / Other site/service or software
\ (other)
vendor> 7
Option user.
User name.
In case NTLM authentication is used, the username should be in the format 'Domain\User'.
Enter a value. Press Enter to leave empty.
user> aming
Option pass.
Password.
Choose an alternative below. Press Enter for the default (n).
y) Yes, type in my own password
g) Generate random password
n) No, leave this optional password blank (default)
y/g/n> y
Enter the password:
password:
Confirm the password:
password:
Option bearer_token.
Bearer token instead of user/pass (e.g. a Macaroon).
Enter a value. Press Enter to leave empty.
bearer_token>
Edit advanced config?
y) Yes
n) No (default)
y/n>
Configuration complete.
Options:
- type: webdav
- url: https://webdev.aming.work:5244
- vendor: rclone
- user: aming
- pass: *** ENCRYPTED ***
Keep this "NAS" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
Current remotes:
Name Type
==== ====
NAS webdav
5 手工挂载
rclone mount NAS: F:
6 配置WEBDEV自动挂载脚本
/B cmd /c 对于每个挂载任务都单独开启一个windows CMD 窗口。
@echo off
rem 定义 Rclone 执行文件和日志文件的路径
set RcloneExe="D:\Program Files\rclone\rclone.exe"
set LogFile="D:\Program Files\rclone\logs\rclone_mount.log"
rem 使用 start 命令启动每个挂载任务
rem 每个任务都会在新的、最小化的窗口中运行,并立即返回
start "Rclone Mount NAS music"/B cmd /c %RcloneExe% mount NAS:music F: --links
start "Rclone Mount NAS software"/B cmd /c %RcloneExe% mount NAS:tools_softwaer I: --links
start "Rclone Mount NAS video" /B cmd /c %RcloneExe% mount NAS:video G: --links
start "Rclone Mount NAS DTV" /B cmd /c %RcloneExe% mount NAS:DTV H: --links
start "Rclone Mount NAS HTV"/B cmd /c %RcloneExe% mount NAS:HTV M: --links
start "Rclone Mount NAS TV" /B cmd /c %RcloneExe% mount NAS:TV K: --links
start "Rclone Mount NAS Download"/B cmd /c %RcloneExe% mount NAS:OWDownload L: --links
exit
6.1 手动停止命令
taskkill /IM rclone.exe /F
7 开机自动挂载
7.1 手动创建服务
New-Service -Name Rclone -BinaryPathName 'D:\Program Files\rclone\rclone.exe mount NAS: F: --links'
7.2 使用 NSSM 服务管理工具创建服务
-
添加环境变量。
| 名称 | 路径 |
|---|---|
| PATH | D:\Program Files\nssm\win64\ |
- 使用管理员打开 CMD 。
7.2.1 运行命令
nssm isntall Rclone
7.2.2 配置启动命令

7.2.3 配置日志路径

8 测试是否能够成功挂载
启动成功后,可以在资源管理器中看到对应的盘

