OneDrive Client for Linux syncs personal and business OneDrive, Microsoft 365, and SharePoint libraries on Linux, FreeBSD, and OpenBSD with flexible sync modes.
Overview
OneDrive Client for Linux is a command-line synchronisation tool for Microsoft OneDrive Personal, OneDrive for Business, Microsoft 365, and SharePoint document libraries. It supports major Linux distributions plus FreeBSD and OpenBSD, and can run in Docker or Podman containers.
Sync modes include two-way alignment by default, upload-only, download-only, and dry-run testing. Client-side filtering uses inclusion and exclusion rules with glob patterns, cached state for large libraries, and conflict handling that can keep local backups when that is the safest outcome.
Change detection combines WebSocket-based cloud notifications, optional webhooks, and inotify for local files. Transfers are multi-threaded with optional bandwidth limits, resumable uploads and downloads, and integrity validation. Authentication supports OAuth2 browser login, device flow for headless systems, and Intune SSO via D-Bus where configured.
Desktop integration includes libnotify alerts and file-manager sidebar registration when a GUI is present; most features work headless. National cloud endpoints are supported. The client does not provide native Windows or macOS builds; Microsoft ships official clients on those platforms.
Key features
- Personal and business OneDrive support
- SharePoint library synchronisation
- Bi-directional and one-way sync modes
- Rules-based include and exclude filters
- WebSocket and webhook change detection
- OAuth2 and device authorization flows
- Docker and Podman container deployment
- Multi-threaded transfers with rate limits
Use cases
- Syncing OneDrive on Linux desktops
- Headless server backup to OneDrive
- Selective sync for large cloud libraries
- SharePoint document library mirroring