--- title: "Replicate Synology NAS Data to a SharePoint Site with Cloud Sync" slug: "dex-wf-synology-nas-to-sharepoint-cloud-sync" updated: 2026-11-30T16:13:01Z published: 2026-11-30T16:13:01Z canonical: "documentation.sysaid.com/dex-wf-synology-nas-to-sharepoint-cloud-sync" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.sysaid.com/llms.txt > Use this file to discover all available pages before exploring further. # Replicate Synology NAS Data to a SharePoint Site with Cloud Sync Use Synology DSM's Cloud Sync package to push, pull, or bidirectionally sync NAS folders with a SharePoint Online document library. **Complexity:** Intermediate. **Impact:** storage + collaboration + hybrid-cloud + data-replication. ## Why use this workflow Many organizations use a Synology NAS as primary on-premises storage but want specific folders (project files, departmental shares, archive data) replicated to a SharePoint Online site. This gives users cloud access, enables collaboration through Microsoft 365, and provides an off-site copy. Synology DSM includes a package called **Cloud Sync** that connects to *Microsoft SharePoint Online*. It supports one-way (upload-only), one-way (download-only), or bidirectional synchronization. This workflow walks through configuring Cloud Sync against a SharePoint site and covers the limitations (filename restrictions, path length, permissions) that commonly break the first sync attempt. ### When to use this workflow - You want NAS folders mirrored into a SharePoint document library for cloud access. - You need an off-site replica of NAS content that fits inside your existing Microsoft 365 tenant. - You are implementing a hybrid workflow where some users edit on the NAS (SMB) and others edit in SharePoint or Teams. ### When not to use this workflow - You want to back up SharePoint *to* your NAS. Use **Active Backup for Microsoft 365** instead (opposite direction). - You need a versioned backup with retention. Use **Hyper Backup** targeting object storage (S3 or Azure Blob), not SharePoint. ## Expected outcomes - The **Cloud Sync** package installed on your Synology NAS. - An authenticated connection from DSM to your Microsoft 365 tenant scoped to a specific SharePoint site. - A configured sync task that maps a local NAS folder to a SharePoint document library with your chosen sync direction. - Awareness of the filename, path-length, and permission limitations that affect SharePoint sync. - A monitoring path using the Cloud Sync log, so failed files are visible. ## Risks and considerations ### Data and compliance risks - **Permissions do not replicate.** NAS ACLs (SMB or AFP permissions) are not converted to SharePoint permissions. Anyone with access to the target library can read synced content. Review SharePoint site membership *before* the first sync. - **Sensitive data may leave on-premises.** Uploading to SharePoint moves data into Microsoft's cloud. Verify that your data residency and classification policy allows it. - **Bidirectional sync can cause deletion loops.** If a user deletes a file in SharePoint and bidirectional sync is enabled, it is also removed from the NAS. Start with *Upload local changes only* unless you need two-way editing. ### Technical considerations - **Filename restrictions:** SharePoint rejects names containing `* : < > ? / \ |` and reserved names such as `CON`, `PRN`, and `AUX`. These files are logged as errors and skipped. - **Path length:** The SharePoint full URL path limit is about 400 characters. Deeply nested NAS folders can fail partway through. - **File size:** SharePoint caps single files at 250 GB. Disk images, VM files, and large archives may not sync. - **Throttling:** Microsoft 365 throttles Graph and SharePoint traffic. Large initial syncs can trigger temporary 429 responses. - **Token expiry:** The OAuth token used by Cloud Sync can expire if the admin account's password is rotated or MFA policies change. Use a dedicated service account where possible. ## Required permissions | Permission | Why it's needed | | --- | --- | | Microsoft 365 account with access to the target SharePoint site | Cloud Sync authenticates through OAuth using this account. It must have at least Edit permission on the destination document library. | | Site Owner on the SharePoint site (recommended) | Required to create or select the target document library and approve the OAuth consent on first connection. | | DSM administrator on the Synology NAS | Needed to install the Cloud Sync package from Package Center and to create sync tasks. | | Tenant admin consent (if organizational policy requires it) | Some tenants block third-party OAuth apps by default. A Global Administrator may need to approve the Synology Cloud Sync app the first time it is used. | ## Ask Dex Paste the prompt into a Dex conversation. ### Prompt for IT admins ``` Set up replication from our Synology NAS folder {nas_path} to the SharePoint site {site_url} (library {library_name}). Use Synology Cloud Sync with upload-only direction, then verify the first sync completes and report any files that failed due to filename or path-length restrictions. ``` ### How an end user can ask Dex ``` I need the files on our office NAS to also show up in our team's SharePoint site so people working from home can get to them. ``` ## Manual steps (admin center) ### Step 1: Install the Cloud Sync package 1. Sign in to **DSM** as an administrator. 2. Open **Main Menu** > **Package Center**. 3. Search for `Cloud Sync` and click **Install**. When installation completes, click **Open**. ### Step 2: Prepare the SharePoint destination 1. In a browser, sign in to the [Microsoft 365 admin center](https://admin.microsoft.com) or go directly to the target SharePoint site. 2. Create (or identify) the document library that receives the files, for example `Documents/NAS-Replica`. 3. Verify that the signing-in account has at least **Edit** permission on that library. ### Step 3: Create the Cloud Sync task 1. In Cloud Sync, click **+** (Create) in the left sidebar. 2. From the provider list, choose **Microsoft SharePoint Online** and click **Next**. 3. A browser window opens. Sign in with the Microsoft 365 account that has access to the target site and click **Accept** on the permissions prompt. 4. Back in DSM, the *Task Settings* dialog appears. Fill in: - **Connection name:** a label, for example `SP-ProjectsSync`. - **Site:** select the SharePoint site from the drop-down. - **Local path:** browse to the NAS folder to replicate, for example `/volume1/projects`. - **Remote path:** select the target library or folder, for example `Documents/NAS-Replica`. - **Sync direction:** choose one: - *Bidirectional:* changes on either side propagate. - *Upload local changes only:* recommended for replication to the cloud. - *Download remote changes only:* mirrors SharePoint down to the NAS. - **Data Encryption** (optional): if enabled, files are encrypted client-side before upload and are only usable through Cloud Sync. They are not readable in SharePoint. Leave it off for normal replication. 5. Click **Next**, review the *Advanced settings* (scheduling, file filter by extension or size, traffic control), and click **Apply**. ### Step 4: Monitor the initial sync 1. The new task appears in Cloud Sync with a status of *Syncing*. 2. Click the task and open the **Log** tab to watch file transfers. 3. Errors (unsupported characters, paths too long, files too large) appear in red. Export the log if needed and remediate. 4. When the queue clears, the status becomes *Up to date*. ### Step 5: Verify in SharePoint 1. Open the target document library in a browser and confirm that files are present with correct timestamps. 2. Spot-check a few files to confirm the content is intact. 3. Review the SharePoint site **Permissions** and adjust sharing as needed. NAS ACLs do not propagate. ## Microsoft Graph API **Not applicable for Cloud Sync.** Cloud Sync is configured through the DSM interface. This workflow has no public Synology API call for creating Cloud Sync tasks, and Cloud Sync uses the Microsoft Graph and SharePoint REST APIs internally, so you do not call them yourself. To replicate NAS content to SharePoint without Cloud Sync, you can upload files directly with the Microsoft Graph API: - `PUT https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root:/{path}:/content` for small files (under 4 MB). - `POST https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root:/{path}:/createUploadSession` for resumable upload of larger files. This is a custom integration (authentication, change detection, retry, delta tracking) and is out of scope for this workflow. ## PowerShell If you prefer not to use Cloud Sync (for example, for a one-time migration or an ad-hoc push from a Windows host that has the NAS mounted), you can upload files directly to SharePoint with **PnP PowerShell**. The approach walks a local or UNC path and uploads each file into a target document library, preserving the subfolder structure. ### Prerequisites - PowerShell 7 or later on a host with network access to the NAS share. - PnP PowerShell module: `Install-Module PnP.PowerShell -Scope CurrentUser`. - A Microsoft 365 account with *Edit* rights on the target library (or an app registration with `Sites.ReadWrite.All`). - The NAS folder mounted or reachable by UNC path. ### Approach 1. Connect to the target SharePoint site interactively. 2. Recursively enumerate files under the source path. 3. For each file, make sure the corresponding SharePoint folder exists, then upload with `Add-PnPFile`. 4. Log successes and failures to a CSV for review. Rerunning overwrites files that already exist at the destination (with `-Force`). This approach does not delete files in SharePoint that no longer exist locally.