Data Backup Problems

Can Windows Server Backup Target OneDrive Directly?

Adam DavisAdam Davis Oct 23, 2026 868 views

Question details

The user is asking if Windows Server Backup can be configured via PowerShell to save backup files directly to a OneDrive location rather than writing them to a local drive first.

Can Windows Server Backup Target OneDrive Directly?
Product
Windows Server Backup
Device & OS
Windows Server 2019
Scenario
Modifying a PowerShell backup script (Start-WBBackup) to use OneDrive as the direct network path target.
Observed behavior
Windows Server Backup requires a standard local volume or a UNC network path for its backup target, preventing direct targeting of OneDrive cloud URLs.
Before you start

Ensure you have administrator privileges on Windows Server 2019 and that the OneDrive sync client is installed and configured for the appropriate user account.

Solution 1Recommended

Backup to a Local Folder and Sync with OneDrive

Since Windows Server Backup does not natively support direct cloud targets, the most reliable workaround is to back up to a local directory synchronized with OneDrive.

Windows Server Backup network targets require a valid UNC network path. Cloud storage locations do not function as native network paths, so you must stage the backup locally before allowing the sync client to upload the files to the cloud.

1
Configure OneDrive Sync

Install the OneDrive sync client on your server and sign in. Choose a local directory (e.g., C:\OneDriveSync) to act as your synchronization folder.

2
Update the PowerShell Script

Modify your existing PowerShell script to target the local sync folder. Change your path variable to reflect the local directory, such as: $npath = "C:\OneDriveSync\ServerBackup\"

3
Set the Backup Target

Update the New-WBBackupTarget command to use the local file path instead of the -NetworkPath parameter, or use a local network share that points to the OneDrive folder.

4
Execute the Backup

Run Start-WBBackup. The backup files will be written to the local drive and the OneDrive client will automatically upload them to the cloud in the background.

Backup to a Local Folder and Sync with OneDrive
Storage Space Requirement: Ensure your local drive has enough available capacity to hold the entire backup file temporarily before it finishes uploading to the cloud.
Free Microsoft Office alternative

Boost Your Productivity with WPS Office

While managing server backups requires specialized IT tools, handling your daily documents, spreadsheets, and presentations shouldn't be complicated. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office for your administrative and business tasks.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installation package.
  2. 2. Install the Software: Run the downloaded executable and follow the simple on-screen instructions to complete the setup.
  3. 3. Start Creating: Launch WPS Office to immediately open, edit, and save your Microsoft Office-formatted documents.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation that saves valuable system resources on your workstation or server.Built-in PDF editing tools for easy document management and archiving.Familiar tabbed interface ensuring a seamless migration with zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I use a OneDrive URL directly in Start-WBBackup?

Windows Server Backup is designed to write to standard local disk volumes or SMB network share paths (UNC paths). It does not natively support HTTP or HTTPS cloud URLs as backup targets.

Does the OneDrive sync client run as a service on Windows Server?

By default, the OneDrive sync client runs per-user and requires an active user session. To run it as a background service on a server without a logged-in user, you may need to utilize third-party wrapper tools or configure specific scheduled tasks.

Can I use third-party cloud backup tools instead of Windows Server Backup?

Yes. Many third-party backup solutions are designed specifically for server environments and natively support direct backups to cloud storage services like OneDrive, AWS, or Azure without requiring local staging.