8
0
I’ve already read a lot about the problems with Symbolic Links and Windows 10 on internet, but not about the phenomenon I run into now. So here it is…
My goal is to 2-way sync a folder (‘My Music’), located on a separate data partition of my SSD-drive, to the OneDrive cloud via a symbol link. It all works fine… except the 2-way syncing. It stays a 1-way street somehow. :-(
Both the data partition and the Windows system partition have the NTFS file system. The data partition has the letter (X:
). I have an existing OneDrive account with no files or folders on it yet.
As far as I understand now, creating a junction is the way to go, although creating a symbolic link could work too in this case. The procedure I followed is this:
- Opened my OneDrive account online.
- Set up OneDrive on my computer.
- Keep the standard location of my OneDrive on the system partition:
C:\Users\<my user name>\OneDrive
. - Opened the command prompt as administrator.
- Created the junction with this command:
mklink /J “C:\Users\<my user name>\OneDrive\My Music” “X:\My Music”
- The
‘My Music’
link appears as a folder underneath the OneDrive icon in Windows Explorer. - Tested if the link with the folder
‘My Music’
on my data-partition actually works. And it does perfectly. - Over to OneDrive online. The
‘My Music’
folder also appeared in my OneDrive online. - Uploaded a random file from my computer into the
‘My Music’
folder to test the syncing. - Uploaded file appears in my OneDrive online.
- Back to Windows Explorer on my computer. The uploaded file has appeared in the
‘My Music’
folder on the data partition via the created link.
So far so good. Anything I upload to my OneDrive online appears perfectly in my data partition folder. But the problem is that the 2-way sync fails. If I change anything in the ‘My Music’
folder on the data partition, that change does appear in the same OneDrive folder that is linked (obviously), but that’s where it stops: no syncing to OneDrive online. How come and what is the solution?
Exactly the same happens if I use not a junction, but a symbolic link: mklink /D “C:\Users\<my user name>\OneDrive\My Music” “X:\My Music”
And my 2nd question is: how is it possible that the result is exactly the other way around, when I change the procedure and first create the junction (or symbolic link) and then set up OneDrive on my computer? So in that case syncing a file to OneDrive online via the created link works fine, but if I change anything in the ‘My Music’ folder in OneDrive online, that change does not appear in the folder on my data partition. Again, it’s only 1 way.
I just don’t get it. Does anyone have the answers please? Thanks in advance!