Alist网盘和存储管理


添加新虚拟驱动器->NAS->WebDAV
去掉地址勾选项,填写test.szrq.ga,端口号为5244,地址为/dav/tianyi,账户为admin,还有管理员密码。

再添加一个WebDAV,去掉地址勾选项,填写test.szrq.ga,端口号为5244,地址为/dav/aliyun,账户为admin,还有管理员密码。

rclone config
新建一个remote
取名为tianyi,类型为WebDAV
url: http://test.szrq.ga:5244/dav/tianyi
vendor选择other
用户名和密码同上面一致。
再新建一个remote
取名为aliyun,类型为WebDAV
url: http://test.szrq.ga/dav/aliyun
vendor选择other
用户名和密码同上面一致。
rclone mount tianyi:/ /tianyiwebdav --allow-other --vfs-cache-mode writes&
rclone mount aliyun:/ /aliyunwebdav --allow-other --vfs-cache-mode writes&
卸载tianyi
fusermount -qzu /tianyi
vi /etc/systemd/system/rclone.service
[Unit]
Description=Rclone
After=network-online.target
[Service]
User=root
ExecStart=rclone mount tianyi:/ /tianyiwebdav --allow-other --vfs-cache-mode writes
ExecStart=rclone mount aliyun:/ /aliyunwebdav --allow-other --vfs-cache-mode writes
Restart=on-abort
[Install]
WantedBy=multi-user.target