Skip to content

Instantly share code, notes, and snippets.

@sohang3112
Last active June 29, 2024 05:50
Show Gist options
  • Save sohang3112/e1a8a113b5694fd73b74f601323df4f3 to your computer and use it in GitHub Desktop.
Save sohang3112/e1a8a113b5694fd73b74f601323df4f3 to your computer and use it in GitHub Desktop.
OneDrive sync in Linux

Sync OneDrive in Linux

Using the official OneDrive Linux client:

$ sudo dnf install -y onedrive               # or "apt install", etc. - depends on distro
$ onedrive                                   # gives a link, open it in browser to login to OneDrive
$ onedrive --synchronize                     # sync files to ~/OneDrive ; downloading files first time takes some time
$ systemctl enable onedrive@<username>.service --now        # sync automatically in background

Check more on its usage in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment