# 使用rclone同步网盘 ``` [Unit] Description=rclone [Service] Environment="http_proxy=http://127.0.0.1:10801" Environment="https_proxy=http://127.0.0.1:10801" Environment='REMOTE_PATH=GoogleDrive:/' #GoogleDrive:/ 表示 name:云盘文件夹路径,斜杠 / 表示将整个云盘挂载到本地,注意冒号 Environment='LOCAL_PATH=/home/GoogleDrive/' #挂载到服务器本地的路径 Type=simple User=root ExecStart=rclone mount ${REMOTE_PATH} ${LOCAL_PATH} --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 ExecStop=fusermount -qzu ${LOCAL_PATH} Restart=on-failure [Install] WantedBy=multi-user.target ```