Skip to content

Instantly share code, notes, and snippets.

@tiagoamaro
Last active April 12, 2020 17:28
Show Gist options
  • Save tiagoamaro/75c204c5b47110f6e3f3dd508d438a59 to your computer and use it in GitHub Desktop.
Save tiagoamaro/75c204c5b47110f6e3f3dd508d438a59 to your computer and use it in GitHub Desktop.
Using rclone with OneDrive

Mounting

Based on article: https://www.linuxuprising.com/2018/07/how-to-mount-onedrive-in-linux-using.html

  • Create a ~/Onedrive folder
  • Download binary: https://rclone.org/downloads/
  • rclone config
    • OneDrive is number 23
    • Auto config was selected
    • No client ID or other options which are default ""
  • With remote created
  • Running rclone --vfs-cache-mode writes mount onedrive: ~/OneDrive should mount

Mount it on background

  • rclone --vfs-cache-mode writes mount onedrive: ~/OneDrive &
  • To unmount: sudo umount ~/OneDrive

Copying

Same SSH syntax

  • rclone copy source dest

Example:

  • rclone copy ~/Downloads/file.txt onedrive:/Public/file.txt --progress --transfers 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment