The OneDrive sync client is a background application that keeps a local folder on your computer in step with your OneDrive cloud storage. It watches for file changes on both sides, uploads new or edited local files, downloads changes made elsewhere, and resolves conflicts by keeping multiple copies rather than silently overwriting data.
What the Sync Client Actually Is
OneDrive itself is Microsoft's cloud storage service. The sync client is the desktop program—built into Windows and available as a separate download for macOS—that bridges your device and the cloud. It runs in the background, usually visible as a cloud icon in the system tray or menu bar, and it is distinct from the OneDrive website and mobile apps. The client creates a special folder (by default under your user profile) that looks and behaves like any other folder in File Explorer or Finder, but whose contents are mirrored to the cloud.
On Windows, OneDrive is deeply integrated: it ships with the operating system, and the same engine also powers the sync of Microsoft 365 app settings and, in some configurations, folder backup for Desktop, Documents, and Pictures. On macOS, the client is a separate installation and uses a similar architecture but with platform-specific file system integration.
The Core Sync Mechanism: Change Detection and Transfer
The client does not continuously re-upload everything. Instead, it uses a change-detection system. On the local side, it monitors the OneDrive folder for file system events—creations, modifications, deletions, renames—and queues those changes for upload. On the cloud side, it maintains a connection (historically a long-polling notification channel, now often a more efficient push mechanism) to learn about changes made from other devices or the web. When a change is detected, the client compares metadata such as file size, timestamp, and a content hash to decide whether a transfer is needed.
Files are transferred in chunks rather than as monolithic blobs. This chunking allows the client to resume interrupted uploads and to upload only the changed portions of large files, a feature Microsoft calls differential sync for supported file types. The client also maintains a local database (a sync engine database) that records the state of every synced item, which is how it knows what has already been transferred and what is pending.
Files On-Demand and the Role of Placeholders
Modern OneDrive clients use a feature called Files On-Demand. Instead of downloading every file to your device, the client creates lightweight placeholder entries that appear in the folder with status icons. These placeholders contain metadata but not the full file content. When you open a placeholder, the client downloads the content on demand and then caches it locally. This is why a OneDrive folder can show terabytes of files while consuming only a few gigabytes of disk space.
Each file or folder carries a status indicator:
- Cloud-only (a cloud icon): the file exists only in the cloud; opening it triggers a download.
- Locally available (a green checkmark): the file is downloaded and will remain on the device.
- Always keep on this device (a solid green circle with a check): the file is pinned for offline use and will not be automatically evicted.
- Sync pending (two arrows): a change is waiting to upload or download.
- Error (a red X): a conflict or failure needs attention.
You can right-click any item to change its availability status. The client uses free space thresholds and user pinning to decide which files to keep locally; when disk space runs low, it can dehydrate files that are not pinned, turning them back into placeholders.
Conflict Resolution: What Happens When Two Devices Edit the Same File
If two devices modify the same file before either change reaches the cloud, the client cannot merge the edits for most file types. Rather than discard one version, it keeps both. The first change to sync wins the original filename, and the later change is saved alongside with a device name and timestamp appended—for example, a file named Report.docx might produce a second copy named Report-DESKTOP-ABC123.docx. For Microsoft Office documents, the client and the Office apps can sometimes merge changes through co-authoring, but that is a function of the Office applications rather than the sync client itself. For other file types, the duplicate-copy approach is the safety net.
What Syncs and What Does Not
Not everything in your OneDrive folder is treated identically. The client syncs files and folders, but it deliberately excludes certain items:
- Files and folders with names containing characters that are invalid in the cloud (for example, names ending in a period or containing certain reserved characters).
- Items in the recycle bin or in the hidden .git folders used by some development tools, depending on configuration.
- Files larger than the per-file size limit, which for OneDrive personal and work accounts is in the hundreds of gigabytes; the exact limit depends on the account type and has changed over time.
- Certain temporary files and system files that Windows or applications lock while in use.
If a file is open and locked by another program, the client may retry later or report a sync error until the lock is released.
Common Problems and How They Arise
Most sync issues trace back to a handful of causes. Understanding them helps you diagnose rather than guess.
- Sync stuck on "Processing changes": often caused by a very large number of small files, a corrupted sync database, or a file that cannot be uploaded (for example, due to a name conflict or a locked file).
- Conflicted copies: as described above, these appear when the same file is edited in two places before syncing completes.
- Files not appearing on another device: check that the folder is selected for sync in the client settings; selective sync can exclude folders.
- High CPU or disk usage: the client hashes and scans files during initial sync or after large changes; this is normal but can be heavy on large libraries.
- Sign-in or authentication loops: usually resolved by signing out and back in, or by resetting the client.
Microsoft provides a reset command for the client that rebuilds the local sync database without deleting your cloud data; it is a common first step for persistent sync errors.
Security and Privacy Considerations
Data in transit between the client and the cloud is encrypted using TLS. Data at rest in OneDrive is encrypted by Microsoft, and for business accounts, additional controls such as customer-managed keys may be available. On the device itself, files in the local OneDrive folder are not encrypted by the client; they rely on the operating system's disk encryption (BitLocker on Windows, FileVault on macOS) if you want protection at rest. Files On-Demand placeholders contain metadata but not content, so a stolen device with only placeholders exposes less data—but any file you have opened or pinned is fully present and readable unless the disk is encrypted.
A common misconception is that the sync client is a backup tool. It is not: if you delete a file locally, the deletion syncs to the cloud, and after the recycle bin retention period (typically 30 days for personal accounts, configurable for business accounts), it may be unrecoverable. Version history can recover previous versions of files, but it is not a substitute for a separate backup.
Frequently Asked Questions
Does OneDrive sync use a lot of internet data?
Only when files are uploaded or downloaded. With Files On-Demand, files you never open are not downloaded, so data use is limited to the files you actually access and the changes you make. Initial sync of a large library can use substantial data, but subsequent syncs transfer only changed chunks.
Can I choose which folders sync to my computer?
Yes. The client's settings include a "Choose folders" option that lets you select which top-level folders are synced. Folders you deselect are removed from the local device but remain in the cloud.
What happens if I delete a file from my OneDrive folder?
The deletion is synced to the cloud, and the file moves to the OneDrive recycle bin. It can be restored from there within the retention period. Deleting a cloud-only placeholder also removes the file from the cloud.
Why do I see two copies of a file with my computer name in the filename?
That is a conflicted copy created when the same file was edited on two devices before syncing completed. The client keeps both versions to avoid data loss. You can compare them and delete the unwanted one.
Does the sync client work offline?
Yes, for files that are available locally. Changes made offline are queued and uploaded when the connection returns. Cloud-only placeholders cannot be opened while offline.
Is OneDrive sync the same as backup?
No. Sync mirrors changes, including deletions, across devices. Backup requires a separate copy that is not affected by changes to the original. Use a dedicated backup service or an external drive for that purpose.