By Kelsey twitter / Last Updated July 23, 2021

Why Do You Need Cloud Backup?

  • Are you afraid of accidentally losing the data stored on your hard drive?
  • Are you anxious that there is not enough space locally for backup?
  • Are you panicked that you have lost all local backups due to local accidents?
  • Backup all your data to the cloud offsite, never lose data and recover them from any PC.

Eliminate all your concerns with the Best Cloud Backup service - CBackup

Get Started

Can you sync any folder to OneDrive?

As a cloud storage and sync service launched by Microsoft, OneDrive is loved by Windows users and is even widely used on other types of computers. As you all know, you can sync local data with the OneDrive cloud by simply creating, moving or pasting files into the OneDrive folder. The data outside of the OneDrive folder will not be synced to the remote server.

Can OneDrive sync any folders to the cloud? The answer is yes. Read on, you will learn about 2 methods on how to sync any folder to OneDrive from Mac and Windows PC in this article.

Way 1. OneDrive sync any folder with Mklink

When you use the OneDrive app on your computer, your OneDrive folder is usually located in the UserProfile%\OneDrive\ (for example: C:\Users\Kelsey\OneDrive) list by default. You can set a symbolic link to point to OneDrive sync any files and folders outside of the OneDrive folder.

What is a OneDrive Mklink?

Mklink is used on Windows PC to create an advanced shortcut called symbolic link, through which users can create symbolic links between folders and files, and the OneDrive client will think it owns these files and sync them. This means that even if you don't add the target folder to the OneDrive folder, it can be synced to the OneDrive cloud.

Step-by-step to sync any folder to OneDrive with Mklink

Now, you can follow the steps below to let OneDrive sync any folder in Windows 10 through the mklink command.

Step 1. Click the Windows button on the desktop, enter “comment prompt”, and select the first result. Alternatively, you could press Windows + R keys and type “cmd” to quickly enter the Command Prompt.

Command Prompt Cmd

Step 2. At the command prompt, type the following command:

mklink /j "%UserProfile%\OneDrive\Folder Name" "the full path of your source folder"

Mklink Onedrive Command

Note: You need to choose any folder you want to sync to OneDrive. The first quotation mark contains the display name of the folder you want to set, and the name cannot be the same as the existing directory. The second one contains the source folder you want to link to, please make sure the path is correct.

3. Press Enter to confirm your operation, and the source directory you selected will now be synced to OneDrive.

Way 2. An easier way to automatically sync any folder to OneDrive

If you use mklink command to synchronize any folder from PC to OneDrive, then every time there is a new PC file that needs to be synced, you need to continue to perform manual operations. And if the setting is wrong in the process, it may be more troublesome.

You could use a third-party tool to automatically sync all folders on your computer to OneDrive. You could try the free cloud backup service CBackup, which is a reliable way to sync files to OneDrive.

About CBackup

CBackup focuses on online backup and sync. You can add your OneDrive account to the platform, and then you can sync any file or folder on PC to OneDrive with just one login. As long as you enable scheduled backup, data can be automatically added to the cloud, so there is no need for manual attention, saving you time and energy.

CBackup Main Page

The service is safe and reliable, based on the OAuth structure and GDPR compliance, you don't need to worry about any personal data and privacy leakage. If you need a simpler and safer way to start OneDrive to sync any folder from the local location, this method is worth trying.

Step-by-step to sync any folder to OneDrive with CBackup

CBackup has a simple interface and simple operation steps. You can follow the steps below to automatically sync any file on your computer to the OneDrive cloud.

Step 1. Download the CBackup client on your computer, and create a free CBackup account to log in.

Sign In

Step 2. Navigate to My Storage > Add Cloud, and select Dropbox, hit Add to follow the steps to allow CBackup to access your OneDrive account.

Add Cloud

Step 3. In the next window to edit the Display Name, and Storage Path, then tick the Note option, hit OK to confirm your operation.

Complete OneDrive Info

Step 4. Go to Backup Tasks > New Task to create your task.

Create Task

Step 5. You could change your Task Name, and then click on Add Source to select any folder that you want to backup to OneDrive. Click on the Add Destination button to choose Single Cloud > OneDrive.

Task Name Add Source

Step 6. Click Settings in the lower left corner of the window, and then enable this function under the Scheduled Backup tab. You can set the automatic backup frequency or a specific time.

Scheduled Backup

Step 7. After selecting, click Start Backup to backup any folder to OneDrive from your PC automatically.

Start Backup Any Folder to OneDrive

In the end

You can use the two effective methods provided in this article to make OneDrive sync any folder. If you are worried about errors in the process of using the mklink command, you can switch to CBackup to easily implement this process.

Get Unlimited Cloud Storage for Free to Protect Files with CBackup

Learn More