How to Sync Folders Between Your PC and OneDrive
In this article
To sync folders between your computer and Microsoft OneDrive, install the OneDrive desktop app, sign in with your Microsoft account, and use the app's folder backup and sync settings to choose which folders are mirrored. On Windows 10 and Windows 11, OneDrive is built in; on Mac you download it from Microsoft. Once signed in, the app creates a local OneDrive folder that stays in step with the cloud, and you can add other folders (such as Desktop, Documents, and Pictures) to that sync through the app's backup options. The steps below cover Windows and Mac, plus what to do when sync stalls or files refuse to appear.
What You'll Need
- A Microsoft account (the same one you use for OneDrive, Outlook.com, or Microsoft 365).
- A computer running Windows 10, Windows 11, or a current version of macOS.
- Enough free space on your local drive for the files you want to keep offline; OneDrive's Files On-Demand feature lets you keep some files cloud-only to save space.
- A stable internet connection for the initial upload, which can take a while for large folders.
Step-by-Step
- Check that OneDrive is installed. On Windows 10 and 11, OneDrive is included; look for the cloud icon in the notification area (click the ^ arrow near the clock). On Mac, download the OneDrive app from the Microsoft OneDrive website or the Mac App Store, then open it.
- Sign in. Open the OneDrive app and sign in with your Microsoft account. If OneDrive is already set up, you'll see your existing folder; if not, the setup wizard asks where to store your OneDrive folder locally. The default location is your user folder, but you can choose another drive if space is tight.
- Let the initial sync finish. The app uploads or downloads files to match the cloud. The cloud icon in the taskbar or menu bar shows progress; a blue circular arrow means syncing, a green tick means up to date. Avoid shutting down mid-sync.
- Open the OneDrive folder. In File Explorer (Windows) or Finder (Mac), open the OneDrive folder. Anything you copy or save here syncs automatically to the cloud and to your other signed-in devices.
- Back up important folders (Windows). Right-click the OneDrive cloud icon in the notification area, choose Settings, open the Sync and backup tab, and select Manage backup. You can turn on backup for Desktop, Documents, and Pictures so those folders sync to OneDrive. On Mac, the equivalent options appear in OneDrive Preferences under the Backup tab; labels can differ slightly by version and region.
- Choose what syncs. In OneDrive Settings, open the Account tab and choose Choose folders. Untick any folders you don't want on this computer; this removes them from the local drive but leaves them in the cloud. This is useful on a laptop with limited storage.
- Use Files On-Demand. On Windows, Files On-Demand is on by default. Files show a cloud icon when they are online-only and download when you open them. Right-click any file or folder and choose Free up space to make it online-only, or Always keep on this device to pin it locally. On Mac, the same idea is controlled in OneDrive Preferences under Files On-Demand.
- Add other folders to sync. OneDrive does not sync arbitrary folders outside its own folder by default. To include another folder, move it into the OneDrive folder, or use the backup options for the standard user folders. For a folder on another drive, create a folder inside OneDrive and copy the contents in; a symbolic link or junction is not officially supported and can cause sync errors.
- Verify the sync. Make a small test change, such as creating a text file in the OneDrive folder, and check that it appears at onedrive.com in the browser. If it does, sync is working.
Common Mistakes
- Expecting any folder to sync automatically. Only the OneDrive folder and the folders you explicitly back up are synced. Files elsewhere on the drive are not included unless you move them.
- Deleting local files to save space. Deleting a file in the OneDrive folder deletes it in the cloud too. Use Free up space instead, which keeps the cloud copy.
- Signing in with the wrong account. If you have both a personal and a work or school Microsoft account, files can end up in the wrong OneDrive. Check the account name in OneDrive Settings.
- Turning off backup without checking. Disabling backup for Documents or Desktop can leave files only on the local drive; confirm where the files are before changing the setting.
- Ignoring the sync icon. A red X or a paused icon means sync has stopped. Opening the app shows the reason, usually a sign-in issue or a full drive.
Tips
- Keep the OneDrive folder on a drive with plenty of free space; a full drive stops sync and can cause errors.
- Use Files On-Demand on laptops to keep large folders in the cloud without filling the disk.
- Pause syncing from the OneDrive menu when on a metered connection, then resume when back on Wi-Fi.
- Name files without characters that are invalid on Windows (such as : ? * " < > |), because those names cause sync errors across devices.
- Check the OneDrive icon after major Windows updates; updates occasionally reset the app and require signing in again.
Troubleshooting
If files are not syncing, work through these in order. First, check the OneDrive icon: a red X, a pause symbol, or a warning triangle tells you sync has stopped. Click it to see the message. Then restart the computer and reopen OneDrive; this clears most temporary glitches. Next, make sure you are signed in with the correct account and that the app is up to date (Windows Update handles it on Windows; on Mac, check the app's own update option or reinstall from Microsoft).
If sync is stuck on a particular file, look for a file name with invalid characters, a file that is open in another program, or a file larger than your available cloud storage. Free up space in OneDrive or remove the file, then resume sync. If the drive is full locally, free space with Files On-Demand.
If the app still fails, sign out and sign back in from OneDrive Settings. As a last resort, unlink the computer from OneDrive and set it up again; this does not delete your cloud files, but any files that exist only on the local drive should be copied elsewhere first. Do not reset or uninstall OneDrive without confirming that important files are safely in the cloud.
Frequently Asked Questions
Does OneDrive sync every folder on my computer?
No. It syncs the OneDrive folder and, if you enable backup, the Desktop, Documents, and Pictures folders. Other folders must be moved into OneDrive to sync.
Can I sync a folder from another drive?
Only by placing it inside the OneDrive folder, for example by creating a folder there and copying the files in. Junctions and symbolic links are not officially supported.
What happens if I delete a file in the OneDrive folder?
It is deleted from the cloud and from other synced devices. OneDrive keeps deleted files in the recycle bin for a period, so you can usually restore them from onedrive.com.
Does syncing use a lot of data?
The first sync uploads everything you have chosen, which can be large. After that, only changes are transferred. Use Pause syncing on metered connections.
Can I sync the same OneDrive account on two computers?
Yes. Sign in on both, and each keeps its own local copy of the folders you select. Changes made on one appear on the other after sync.
Is Files On-Demand available on Mac?
Yes, the current OneDrive app for Mac includes Files On-Demand, controlled in OneDrive Preferences. The exact label can vary by version.