OneDrive Folder Sync: Setup for Windows 11 and macOS
In this article
To automatically sync OneDrive folders, sign into the OneDrive app on your device and select the specific folders you want to keep updated across the cloud and your local drive. This process ensures that any file you add, edit, or delete in a synced folder is immediately mirrored on all other devices linked to your account, providing a seamless bridge between your local hardware and cloud storage. Depending on your settings, files can either stay only in the cloud to save space or be downloaded locally for offline access.
What You'll Need
- A Microsoft account (Personal, Work, or School).
- A stable internet connection for the initial upload and ongoing synchronization.
- A Windows 11 PC or a Mac running a compatible version of macOS.
- Sufficient disk space if you intend to keep local copies of all your cloud files.
Step-by-Step
Note: Menu labels and icons may vary slightly depending on your operating system version, region, or whether you are using a personal or business account.
For Windows 11
- Launch OneDrive: Click the Start button and type "OneDrive" to open the application. If it is already running, you will see a blue or white cloud icon in the system tray (bottom right corner of the taskbar).
- Sign In: Enter the email address associated with your Microsoft account and follow the prompts to enter your password.
- Choose Your Folder Location: During the setup process, OneDrive will suggest a default location for your OneDrive folder (usually
C:\Users\YourName\OneDrive). You can click "Change location" if you prefer to store your synced files on a different drive or partition. - Configure Folder Backup: You will be prompted to "Back up your folders." This is a critical step for automation. Select the checkboxes for folders like Desktop, Documents, and Pictures. By doing this, Windows will move these standard system folders into the OneDrive directory, ensuring everything you save to your desktop is automatically synced.
- Select Specific Cloud Folders: Once the setup is complete, right-click the OneDrive cloud icon in the system tray and select the gear icon (Settings). Go to the "Account" tab and click "Choose folders." Here, you can uncheck any folders currently in the cloud that you do not want to take up space on your local hard drive.
- Manage Files On-Demand: In the Settings menu, look for the "Sync and backup" section. Ensure "Files On-Demand" is configured to your preference. Enabling this allows you to see all your files in File Explorer without them taking up physical space until you open them.
For macOS
- Install OneDrive: Download the OneDrive app from the Mac App Store or the official Microsoft website. Open the application from your Applications folder.
- Account Authentication: Sign in with your Microsoft credentials. If prompted, grant the app permission to access your files and folders.
- Set the OneDrive Location: Choose where the OneDrive folder should live on your Mac. macOS users often keep this in the User home directory. Confirm the location to create the local sync root.
- Configure Sync Settings: Click the OneDrive cloud icon in the top menu bar. Click the gear icon and select "Settings." Under the "Account" tab, click "Choose folders" to determine which cloud directories should be mirrored to your Mac.
- Enable Files On-Demand: macOS uses a similar system to Windows where files can be "online-only." In the settings, ensure you have configured the app to download files only when needed to prevent your Mac's SSD from filling up too quickly.
- Verify Sync Status: Open Finder. You will now see a OneDrive folder in the sidebar. Files with a blue cloud icon are online-only; files with a green checkmark are stored locally and synced.
Common Mistakes
One of the most frequent errors is deleting a file on a synced device thinking it only removes the local copy. Because synchronization is a two-way street, deleting a file in your local OneDrive folder will move that file to the Recycle Bin (Windows) or Trash (Mac) and remove it from the cloud and all other synced devices. If you want to remove a file from your computer but keep it in the cloud, you must use the "Free up space" option rather than the delete key.
Another common mistake is attempting to sync folders that are outside the designated OneDrive root directory. OneDrive cannot "watch" a random folder on your D: drive or a custom folder in your Mac's root directory unless that folder is physically moved inside the OneDrive folder or is one of the official system folders (Desktop/Documents) being backed up via the backup settings. Users often create shortcuts to folders and expect the contents of the shortcut's destination to sync, but OneDrive only syncs the shortcut file itself, not the target data.
Finally, users often ignore the sync icons. A red "X" or a yellow warning sign on a folder indicates a sync conflict or a permission error. Ignoring these signs can lead to "version conflict" files, where OneDrive creates duplicate copies of a document (e.g., "Document-ComputerName.docx") because it couldn't determine which version of the file was the most recent.
Tips
To maximize efficiency, utilize the "Always keep on this device" feature for critical projects. Right-click a specific folder or file within OneDrive and select this option. This ensures that even if you lose internet connectivity, those specific files are physically present on your hard drive and available for editing. This is ideal for travel or areas with spotty Wi-Fi.
For those managing massive amounts of data, use the "Choose folders" setting strategically. You do not need every single archive from the last ten years taking up space on your laptop. By unchecking old archive folders in the account settings, you remove them from your local view and disk usage while they remain safely stored and accessible via the OneDrive web portal.
Integrate your workflow by saving files directly to the OneDrive folder from other applications. Instead of saving to a local folder and then dragging the file into OneDrive, change the default save location in apps like Word or Excel to your OneDrive directory. This eliminates the manual step and ensures your work is backed up in real-time as you hit save.
Troubleshooting
If your folders are not syncing, start with the simplest check: verify your internet connection and ensure you are signed into the correct Microsoft account. Sometimes a password change on another device will cause the sync client to pause until you re-authenticate. Look for a "Sign in" prompt on the cloud icon in the taskbar or menu bar.
If the app is running but files aren't updating, restart the OneDrive application. On Windows, right-click the cloud icon, select "Close OneDrive," and then relaunch it from the Start menu. On Mac, quit the app from the menu bar and reopen it. A restart often clears temporary cache glitches that stall the upload queue.
Check for file name restrictions. OneDrive cannot sync files that contain certain characters in the name, such as "\", "/", ":", "*", "?", "<", ">", or "|". Additionally, ensure the file path is not too long (typically over 255 characters). If a file has an invalid name, OneDrive will display a sync error; renaming the file to something simple usually resolves the issue immediately.
If sync remains frozen, check your storage quota. If your OneDrive account is full, synchronization will stop entirely. You can check your remaining space in the "Account" tab of the settings menu. If you are over your limit, you will need to delete unnecessary files from the web portal or upgrade your storage plan to resume syncing.
As a last resort, you can reset the OneDrive app. On Windows, this involves running a specific command in the Run dialog (Windows Key + R) to reset the app's configuration. On Mac, you may need to unlink the account in settings and then sign back in. Warning: Unlinking your account does not delete your data in the cloud, but it will stop the local sync process until you sign in again.
Frequently Asked Questions
Can I sync folders from a different hard drive?
You can change the entire location of the OneDrive folder to a different drive during the initial setup or by unlinking your account and relinking it. However, you cannot sync multiple disparate folders from different drives into one OneDrive account; everything must reside within the primary OneDrive folder.
What is the difference between "Files On-Demand" and local sync?
Files On-Demand shows you a "placeholder" of the file that takes up almost no space. The file is downloaded from the cloud only when you double-click to open it. Local sync downloads the entire file to your hard drive, making it available offline at all times.
Will OneDrive sync my deleted files?
Yes. If you delete a file from a synced folder on your PC, it will be deleted from the cloud and all other synced devices. However, these files are moved to the OneDrive recycle bin online, where they can usually be recovered for a limited time.
Can I sync folders with someone else?
OneDrive allows you to share a folder with another person. Once they accept the invitation, they can choose to "Add shortcut to My files," which allows that shared folder to appear in their own OneDrive directory and sync to their local machine.
Does OneDrive sync automatically in the background?
Yes, as long as the OneDrive application is running and you have an active internet connection, any changes made to files within the synced folders are uploaded and downloaded automatically without manual intervention.