由于Rclone会频繁读写硬盘,在家里云不建议硬刚,盘没了就大亏,所以建议使用tmpfs方法,用内存盘来作为Rclone的缓存盘。 创建 tmpfs 缓存(比如3G): ```shell mkdir -p /mnt/ramcache mount -t tmpfs -o size=3G tmpfs /mnt/ramcache ``` 设置开机启动 编辑 /etc/fstab 文件,加一行: ```shell tmpfs /mnt/ramcache tmpfs defaults,size=3G 0 0 ``` Rclone挂载参数(比如总缓存大小为2G限制): ```shell rclone mount youdrive: /home/youdrive --allow-non-empty --no-gzip-encoding --umask 000 --allow-other --attr-timeout 100m --vfs-cache-mode full --vfs-cache-max-age 3m --cache-dir=/mnt/ramcache --vfs-read-chunk-size-limit 500M --buffer-size 100M --vfs-cache-max-size 2G --dir-cache-time 1h --poll-interval 15s --daemon ``` treesky 2025-10-18 上一篇: Debian10查看当前DNS请求 下一篇: 没有了 评论已关闭
评论已关闭