【install】
curl https://rclone.org/install.sh | sudo bash
【mount】
rclone mount RemoteAlias:RemoteDir LocalDir --allow-other --allow-non-empty --vfs-cache-mode writes --no-modtime --dir-cache-time 1m
【unmount】
# Linux
fusermount -u LocalDir
# OS X
umount LocalDir
【sync dirty check】
rclone sync RemoteAlias:RemoteDir LocalDir --dry-run
【service】
1、vi /usr/lib/systemd/system/rclone.service
2、
[Unit]
Description=rclone
[Service]
User=root
ExecStart=/usr/bin/rclone mount RemoteAlias:RemoteDir LocalDir --allow-other --allow-non-empty --vfs-cache-mode writes --no-modtime --dir-cache-time 1m
Restart=on-abort
[Install]
WantedBy=multi-user.target
3、systemctl daemon-reload
4、systemctl enable rclone
5、systemctl start rclone