apt-get install fuse -y
手动挂载:

mkdir -p /home/pan
/usr/bin/fclone mount pan: /home/pan \
--umask 0000 \
--default-permissions \
--allow-non-empty \
--allow-other \
--buffer-size 32M \
--dir-cache-time 12h \
--vfs-read-chunk-size 64M \
--vfs-read-chunk-size-limit 1G &

自动挂载

cat > /etc/systemd/system/pan.service <<EOF
[Unit]
Description=Fclone
AssertPathIsDirectory=LocalFolder
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/fclone mount pan: /home/pan \
--umask 0000 \
--default-permissions \
--allow-non-empty \
--allow-other \
--buffer-size 32M \
--dir-cache-time 12h \
--vfs-read-chunk-size 64M \
--vfs-read-chunk-size-limit 1G
ExecStop=/bin/fusermount -u LocalFolder
Restart=on-abort
User=root
[Install]
WantedBy=default.target
EOF

启动:

systemctl start pan

设置开机自启:

systemctl enable pan