How to Sync OneDrive to Synology NAS: Complete Guide
In this article
Syncing Microsoft OneDrive to a Synology NAS allows you to maintain an offline, local copy of your important cloud files on your private server. This setup is ideal for creating robust backups of your OneDrive data, ensuring you have immediate access to critical documents even if the internet goes down or your Microsoft account faces issues. It effectively turns your Synology into a secure, local mirror of your cloud storage.
What You'll Need
- A Synology NAS with DSM (DiskStation Manager) installed and running.
- A Microsoft account with an active OneDrive subscription (Personal, Business, or Education).
- Sufficient storage space on your Synology NAS to hold the size of your OneDrive content.
- The "Drive Backup" application installed from the Synology Package Center.
- A stable internet connection for initial synchronization and ongoing updates.
Step-by-Step
- Install Drive Backup: Open the Synology Package Center on your NAS. Search for "Drive Backup" in the search bar. Click on the result and select "Install." Wait for the installation to complete. Note that menu labels may differ slightly depending on your DSM version.
- Create a Shared Folder: Before syncing, you need a destination on your NAS. Open File Station and create a new shared folder named something like "OneDrive_Backup." Ensure this folder has sufficient permissions for your user account to read and write files.
- Launch Drive Backup: Open the Drive Backup application from your Synology Main Menu. If prompted, accept the license agreement and set up any initial security preferences.
- Add a New Task: In the Drive Backup interface, click the "Create" button (often represented by a plus sign or "Create Task") to start a new synchronization job.
- Select Source: Choose "Microsoft OneDrive" as the source type. You will be prompted to log in to your Microsoft account. Enter your credentials. If you have Multi-Factor Authentication (MFA) enabled, follow the on-screen prompts to verify your identity via email, phone, or authenticator app.
- Choose Sync Direction: Select "Download" or "Backup" mode. This ensures files are pulled from OneDrive to your NAS. Avoid "Sync" mode unless you explicitly want changes made on the NAS to reflect back to OneDrive, which can lead to accidental deletion of cloud files if not managed carefully.
- Select Destination: Browse your NAS file system and select the "OneDrive_Backup" shared folder you created earlier. You can choose to sync the entire OneDrive root or specific subfolders. For most users, selecting the root directory is safest to ensure all data is captured.
- Configure Schedule: Set the frequency of the backup. Options typically include "Every hour," "Daily," or "Weekly." For critical data, a daily or hourly schedule is recommended. Enable "Skip files that haven't changed" to save bandwidth and processing power.
- Set Notification Preferences: Configure how you want to be notified about the task status. Enabling email notifications is highly recommended so you are alerted if a sync fails or encounters errors.
- Start the Task: Review your settings and click "Finish" or "Save." The first run will download all existing files from OneDrive to your NAS, which may take some time depending on your internet speed and the volume of data. Subsequent runs will only update changed files.
Common Mistakes
One of the most frequent errors is selecting the wrong sync direction. Users often accidentally choose "Upload" instead of "Download," which can overwrite their cloud data with empty local folders if they misconfigure the source. Always double-check that the source is OneDrive and the destination is your NAS.
Another common mistake is ignoring storage quotas. If your OneDrive plan has limited space but your NAS has plenty, ensure you are not trying to sync a massive amount of data that exceeds your OneDrive limit during the initial pull. Conversely, ensure your NAS has enough free space to hold the full copy of your OneDrive library.
Users also frequently forget to configure MFA correctly. If you do not complete the verification step during the initial login, the task will fail silently or prompt repeatedly. Ensure you have access to your secondary verification method before starting the setup.
Tips
Use exclusion filters wisely. If you store large media files like 4K videos or raw photos in OneDrive that you do not need locally, add them to the exclusion list in the task settings. This saves significant NAS storage space and reduces bandwidth usage during syncs.
Monitor the task logs regularly. Drive Backup provides detailed logs showing successful uploads, skipped files, and errors. Checking these logs weekly helps you identify permission issues or network interruptions early.
Consider using a dedicated service account for business environments. If you are syncing a company OneDrive, use a generic service account rather than your personal login. This prevents sync failures when you change roles or leave the organization.
Troubleshooting
If the sync does not start, check your internet connection and ensure your NAS can reach Microsoft servers. Sometimes firewall settings on your router or ISP block the necessary ports. Restarting the Drive Backup package often resolves temporary glitches.
If you encounter authentication errors, try removing the linked account in Drive Backup and re-adding it. Ensure your Microsoft password is correct and that your account is not locked. Clearing the browser cache on the NAS management interface can also help if you are using the web-based configuration tool.
If files are missing after sync, check the exclusion list. Verify that no filters are accidentally hiding specific file types or folders. Also, ensure that the files were not deleted from OneDrive itself; the backup reflects the current state of the cloud source.
Frequently Asked Questions
Can I sync multiple OneDrive accounts?
Yes, you can create separate Drive Backup tasks for each Microsoft account. Each task operates independently with its own source and destination settings.
Does this work with OneDrive for Business?
Yes, Drive Backup supports both personal OneDrive accounts and OneDrive for Business (part of Microsoft 365). The login process may look slightly different but functions similarly.
Will deleting a file on my NAS delete it from OneDrive?
No, if you use the "Backup" or "Download" mode, deletions on the NAS do not affect OneDrive. Only "Sync" mode propagates deletions in both directions, which is generally not recommended for backup purposes.
How much storage does my NAS need?
Your NAS needs enough free space to hold the total size of the OneDrive content you choose to sync. Check your OneDrive usage online to estimate the required space.
Is the sync real-time?
No, Drive Backup runs on a schedule. Changes made in OneDrive will not appear on your NAS until the next scheduled task runs. You can set this to every hour for near-real-time updates.