Windows 10: Use symbolic links (mklink) to sync OneDrive, does it still work?

Discus and support Use symbolic links (mklink) to sync OneDrive, does it still work? in Windows 10 Network and Sharing to solve the problem; I've been using symbolic links (mklink/d) to sync files in my computer to onedrive and it has been doing good. However, it didn't work a fee weeks ago... Discussion in 'Windows 10 Network and Sharing' started by LakefrontHK, Feb 11, 2019.

  1. Use symbolic links (mklink) to sync OneDrive, does it still work?


    I've been using symbolic links (mklink/d) to sync files in my computer to onedrive and it has been doing good.

    However, it didn't work a fee weeks ago and i've tried all methods, e.g. unlink to this computer and link again, check windows updates etc. But none of them worked. I'd like to know if symbolic links still work for onedrive? Any methods to solve this problem? Many thanks!

    :)
     
    LakefrontHK, Feb 11, 2019
    #1

  2. Mklink - Symbolic Link with NAS & Onedrive

    Ok... I've managed to answer my own question lol... but this might be of help to someone else trying to sync onedrive files that are actually stored on a NAS... because onedrive won't let you relocate its folder to the NAS.

    So your Onedrive folder is located here:

    C:\Onedrive

    and you have a mapped drive from your NAS

    W:\Work

    And inside the "Work" folder you have a "Documents" folder (the folder you want synced to Onedrive)

    W:\Work\Documents

    What you need to do next is run "command" as administrator and goto your onedrive folder (C:\Onedrive)

    Then use the following command..

    mklink /d Documents W:\Work\Documents

    This will then create a symbolic link to your onedrive folder and start to sync Use symbolic links (mklink) to sync OneDrive, does it still work? :)

    Thank you all!
     
    djsupersain, Feb 11, 2019
    #2
  3. MennoLN Win User
    2-Way sync doesn't work in OneDrive when using symbolic links or junctions

    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 (XUse symbolic links (mklink) to sync OneDrive, does it still work? :). 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:

    1. Opened my OneDrive account online.
    2. Set up OneDrive on my computer.
    3. Keep the standard location of my OneDrive on the system partition: C:\Users\<my user name>\OneDrive.
    4. Opened the command prompt as administrator.
    5. Created the junction with this command: mklink /J “C:\Users\<my user name>\OneDrive\My Music” “X:\My Music”
    6. The ‘My Music’ link appears as a folder underneath the OneDrive icon in Windows Explorer.
    7. Tested if the link with the folder ‘My Music’ on my data-partition actually works. And it does perfectly.
    8. Over to OneDrive online. The ‘My Music’ folder also appeared in my OneDrive online.
    9. Uploaded a random file from my computer into the ‘My Music’ folder to test the syncing.
    10. Uploaded file appears in my OneDrive online.
    11. 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!
     
    MennoLN, Feb 11, 2019
    #3
  4. na51hog Win User

    Use symbolic links (mklink) to sync OneDrive, does it still work?

    Mklink - Symbolic Link with NAS & Onedrive

    This does work, and I used it to point OneDrive to my Synology NAS. However, there is a caveat.

    If (when) your OneDrive account becomes disconnected and you reconnect, it will look to the directory with your symbolic links in it and decide if the local drive the links are located on has sufficient space for the files in your NAS location. If not, it will present you with a message about negative disk space - see image Negative Disk Space and won't allow you to 'Next' .

    Use symbolic links (mklink) to sync OneDrive, does it still work? 6nVWI.jpg


    You can, of course, deselect files and folders to sync, and continue. You will be able to access the files through the OneDrive folder, but new or changed files won't sync, which does rather defeat the purpose of OneDrive!

    For you to recover from a disconnect, your locally declared OneDrive location must be larger than the file space occupied by your files in your actual NAS location.

    I overcame this problem by moving my local OneDrive location to a drive that had more empty space than the files occupying my NAS. To do this I created a OneDrive directory on a 2 terabyte internal drive and recreated the Symbolic Links from my original OneDrive location in it (I didn’t want to risk a copy or move of the existing symbolic links in case something untoward happened as a result). Then I unlinked OneDrive from the PC via the Settings in the OneDrive app.

    Restarting the app prompted me to log in and then accept or alter the default location for OneDrive. I selected the OneDrive directory I had created on the 2 terabyte drive and away it went. OneDrive did the math on the local drive disk space vs the space taken on the NAS via the symbolic links, concluded there was now sufficient for synchronisation and signed me in.

    After a short while, OneDrive confirms the local data (on the NAS) is synced with the cloud and we are good to go.

    Hope my experience is helpful to others.
     
    na51hog, Feb 11, 2019
    #4
Thema:

Use symbolic links (mklink) to sync OneDrive, does it still work?

Loading...
  1. Use symbolic links (mklink) to sync OneDrive, does it still work? - Similar Threads - symbolic links mklink

  2. Sync folder using links with onedrive.

    in Windows 10 Software and Apps
    Sync folder using links with onedrive.: Hi everyone. I need to find a way to sync a folder in my pc with onedrive without actually saving the files inside the onedrive folder. The reason is that the folder must be able to be accessed from Linux, so after booting back in Windows the files added get synced. Onedrive...
  3. Sync folder using links with onedrive.

    in Windows 10 Network and Sharing
    Sync folder using links with onedrive.: Hi everyone. I need to find a way to sync a folder in my pc with onedrive without actually saving the files inside the onedrive folder. The reason is that the folder must be able to be accessed from Linux, so after booting back in Windows the files added get synced. Onedrive...
  4. Sync folder using links with onedrive.

    in Windows 10 Gaming
    Sync folder using links with onedrive.: Hi everyone. I need to find a way to sync a folder in my pc with onedrive without actually saving the files inside the onedrive folder. The reason is that the folder must be able to be accessed from Linux, so after booting back in Windows the files added get synced. Onedrive...
  5. OneDrive that uses symbolic linked directory

    in Windows 10 Gaming
    OneDrive that uses symbolic linked directory: I have about 950GB of data stored in OneDrive on my Windows 10 machine. But my disk is only 500 GB. I am able to do this by defining a linked folder from C:\OneDrive that points to a second drive mklink /J C:\OneDrive\NoBackup W:\OneDrive.All works fine until I need to select...
  6. OneDrive that uses symbolic linked directory

    in Windows 10 Software and Apps
    OneDrive that uses symbolic linked directory: I have about 950GB of data stored in OneDrive on my Windows 10 machine. But my disk is only 500 GB. I am able to do this by defining a linked folder from C:\OneDrive that points to a second drive mklink /J C:\OneDrive\NoBackup W:\OneDrive.All works fine until I need to select...
  7. OneDrive that uses symbolic linked directory

    in Windows 10 Network and Sharing
    OneDrive that uses symbolic linked directory: I have about 950GB of data stored in OneDrive on my Windows 10 machine. But my disk is only 500 GB. I am able to do this by defining a linked folder from C:\OneDrive that points to a second drive mklink /J C:\OneDrive\NoBackup W:\OneDrive.All works fine until I need to select...
  8. Is there any significance in the difference between a symbolic link MKLINK /D and a...

    in Windows 10 Software and Apps
    Is there any significance in the difference between a symbolic link MKLINK /D and a...: OS Name Microsoft Windows 10 Pro Version 10.0.19044 Build 19044 I'm referring to links to folders.When I drop a file onto either, the same thing appears to happen - the file is created in the target folder.Should I be concerned that there is a difference in the two link...
  9. Syncing folders using symbolic links

    in Windows 10 Network and Sharing
    Syncing folders using symbolic links: Hi everyone! I have a question about symbolic links on Windows 10. How can I sync folders using the function "mklink" CMD, and point to a folder which already exists, without creating a new folder? is it even possible? Because when I create a symbolic link in that way, it...
  10. Are symbolic links available to sync PC to Onedrive?

    in Windows 10 Customization
    Are symbolic links available to sync PC to Onedrive?: I used to use symbolic links to sync files on my PC to OneDrive. But these symbolic links stopped working a while ago. So I do a query, are they available?...

Users found this page by searching for:

  1. onedrive mklink

    ,
  2. mklink onedrive not working

    ,
  3. windows 10 symbolic link onedrive

    ,
  4. onedrive symlink,
  5. onedrive symbolic link,
  6. upload symbolic links to sharepoint onedrive,
  7. mklink new onedrive not working,
  8. using mklink to create a hard link to a onedrive folder in the cloud,
  9. after mklink files still go to c drive,
  10. onedrive mklink wrong synchronization icons,
  11. onedrive folder link mklink,
  12. symboligic link hard link OneDrive,
  13. symbolic link sharepoint,
  14. mklink onedrive,
  15. onedrive symbolic links