Rclone with OneDrive
Back to Home / Back to Notes

Rclone with OneDrive on ubuntu

Tutorial followed: Use Microsoft ONEDRIVE in LINUX: EASY with rclone.

Install Rclone: sudo apt install rclone

Go to secondary disk: cd /mnt/aaxxee223344bbdd...zz/

Create a Directory to store the data: mkdir Onedrive

Configure Rclone: rclone config

Follow the steps, basically no ClientID, no AuthID, just the number for OneDrive in the list. A browser window will appear to authorize Rclone access to Onedrive

Once the setup is done, we have to synchronize the data because only the structure of the folders will be done.

We launch this command: rclone --vfs-cache-mode writes mount Onedrive: /mnt/aaxxee223344bbdd...zz/Onedrive/ &

Once we have everything, in order to avoid launching the command each time we boot, we need to make a script that runs on startup:

rclone --vfs-cache-mode writes mount Onedrive: /mnt/aaxxee223344bbdd...zz/Onedrive/ &

notify-send "OneDrive connected" "Microsoft OneDrive successfully mounted."