[自用] 在Linux下使用rclone mount Onedrive
在 /etc/systemd/system
下新建 rclone.service
,加入以下内容
[Unit]
Description=Rclone
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount OD:/ /OD --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --dir-cache-time 10m --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit 2G --vfs-cache-mode writes --onedrive-chunk-size 100M
Restart=on-abort
User=root
[Install]
WantedBy=default.target