Code in this video_How to Mount OneDrive on Linux Server with Rclone

✳️Replace the highlighted information with your own


sudo apt install vim curl unzip fuse3 -y

curl https://rclone.org/install.sh | sudo bash

[Unit]
Description=Rclone OneDrive Mount
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
ExecStart=WHICH_RCLONE_PATH mount CONFIG_NAME:FOLDER_ON_ONEDRIVE FOLDER_ON_SERVER \
--config=RCLONE_CONFIG_PATH \
--allow-other \
--vfs-cache-mode=writes \
--dir-cache-time=12h \
--poll-interval=1m \
--umask=000 \
--log-level=INFO \
--log-file=/var/log/rclone-onedrive.log
ExecStop=/bin/fusermount3 -u FOLDER_ON_SERVER
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *