Thursday, January 20, 2022

Can t synchronize onedrive for business files and folders from a local file location other than the default onedrive for business path

Problem

This article contains information that applies when you use the OneDrive sync client (groove.exe).

NOTE: To determine which OneDrive sync client you're using, see Which OneDrive sync client am I using? 


Consider the following scenario:

  • You have configured a OneDrive or SharePoint library to sync to your computer by using the OneDrive app.

  • You want to use an additional local path for file synchronization, but you can't configure it in the sync app.

Solution/Workaround

To work around this issue, use symbolic links to link a local path of the local OneDrive sync folder. Files that are put in the linked location will be added to the local OneDrive folder and will be synchronized to your OneDrive or SharePoint site.

The mklink command is used to create symbolic links at the command prompt. To create a symbolic link to a folder, you must first create a target folder in the local OneDrive location and then use the following command: 

    mklink /d \Path to Link\Path to Target

Note In this scenario, Link is the new link that you're creating and Target is the location of the current OneDrive synchronized location. For example, the command should resemble the following:

    mklink /d c:\OneDriveLink c:\users\username\OneDrive @ Contoso\Folder

You may have to use the Run as administrator option to run the command at an elevated command prompt. 

For more information about the mklink command, see Mklink.


NOTE: In the context of the mklink command, the original folder, or <Target>, must be the OneDrive directory that's already synchronized. The new path for synchronization, or <Link>, then links to the target location.

More information

Restrictions

  • OneDrive sync indicators (the green check mark or red X) don't appear on files that are accessed through the folder link. These files will still be synchronized and the status indicators will still be available in the original OneDrive local folder location.

  • NTFS symbolic links (also known as symlinks) must exist on the same drive and partition as the target.

  • We don't recommend that you sync any system directories, and this includes the My Documents folder. Doing this may cause issues with various limitations in the OneDrive service. These limitations include path length, characters, file size restrictions, and issues that involve adding metadata in XML-like files.

  • Symlinks aren't completely transparent to applications. Syncing application folders or protected system folders by replacing them with a symlink will likely lead to issues.

  • You cannot sync folders on other partitions or disks by using this method. Symlinks must exist on the same drive as the original file.

  • You cannot use this workaround in reverse. The original or <Target> folder must be located in the OneDrive directory.


Still need help? Go to Microsoft Community.

2 comments:

  1. Coming across your webpage has been one of my highlights this January. This is what quality content looks like. The style, language and delivery meets every ECFMG CERTIFICATION REQUIREMENTS​ ​
    I gotta make sure to bookmark this link and check out more of your content. Not everyday you learn HOW TO BECOME ECFMG CERTIFIED ​ , so this was very timely. Keep up the good work dear.

    ReplyDelete
  2. I never thought it was possible to recover stolen cryptocurrency due to my past experience trying to recover $228k that was stolen from my usdt w.a.l.l.e.t; until I read an article on this webpage www.thedailychargeback.com , I summited all documents needed to carryout the recovery operation, they successfully recover $205k from what I lost, I advice anyone having problems with lost or stolen cryptocurrency issues to reach to them.

    ReplyDelete