1,446 votes74 comments · OneDrive on Windows » Desktop (Sync, Files On-Demand) · Flag idea as inappropriate… · Admin →
An error occurred while saving the commentDebanjan Ray commented
The problem is solved.
a. First, you need to see what is your drive structure. I have 3 drives C, D and E (C & D are SSD partition, and D is internal HDD SATA) . But you may have only 2 drives C and D.
b. Suppose you do not want all of laptop data to be synched with OneDrive web, but only a partial data, you can drag and drop a folder into OneDrive folder. The folder, in this case, will be moved from your original source to the destination OneDrive. Though this is a very quick method to do so, I do not like this method, because your original hierarchical arrangement of folder structure is disturbed.
In the above method, there is a big disadvantage if OneDrive is installed in C drive. You need to move the complete data into C drive, which I consider as a risky. Data should always remain in a drive other than C, where OS is placed.
c. A better way to do is that you can create folder hierarchy of your choice and create a link. Here is how:
d. For me, One drive folder is created here: D:\OneDrive - Siemens Healthcare GmbH.
e. Now inside that folder I create two more folders: "D-drive" and "E-drive". Note that, I have created these two drives from the explorer which appears at the top i.e. above "This PC", and not what appears under "D:\OneDrive - Siemens Healthcare GmbH". If you directly go to "D:\OneDrive - Siemens Healthcare GmbH" under D drive, you may not notice creation of any folder at all.
f. Suppose my original folder which I want to backup is D:\officedata\IT-asset ( I have other folders under "officedata", which I do not want to backup), I create a officedata folder in the D-drive location under D-drive i.e. D:\OneDrive - Siemens Healthcare GmbH\D-drive\officedata.
g. Next step is to create a linked folder named as "IT-asset" inside D:\OneDrive - Siemens Healthcare GmbH\D-drive\officedata
h. Creating a linked folder has to be done in command promt. Open the command prompt in adminstrator mode i.e. from Windows search button, type "command prompt", and right click the searched "command prompt" to select administrator mode.
i. In command prompt, give command:
mklink /d <"target location with full path where to synch"> <"source location with full path where from it needs to be synched">
In the above example I gave a command:
mklink /d "D:\OneDrive - Siemens Healthcare GmbH\D-drive\officedata\IT-asset" "D:\officedata\IT-asset"
You shall get a message that symbolik link is created. You can also observe that in the OneDrive that IT-asset link