Home

OneDrive - Backup Sync: Documents - Additional check required to prevent duplicate and correct link

%3CLINGO-SUB%20id%3D%22lingo-sub-713349%22%20slang%3D%22en-US%22%3EOneDrive%20-%20Backup%20Sync%3A%20Documents%20-%20Additional%20check%20required%20to%20prevent%20duplicate%20and%20correct%20link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-713349%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20build%2018362.175%2B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20OneDrive%20initializes%20and%20runs%20first%20setup%20for%20Backup%20of%20Desktop%2C%20Documents%20and%20Pictures%20directories%2C%20the%20current%20setup%20logic%20creates%20a%20duplicate%20Documents%20folder%20in%20%25USERPROFILE%25.%3C%2FP%3E%3CP%3EAn%20additional%20step%20is%20required%20to%20prevent%20the%20duplicate%20directory%2C%20and%20verify%20that%20the%20symbolic%20link%20for%20%25USERPROFILE%25%5CDocuments%20is%20pointing%20to%26nbsp%3B%25USERPROFILE%25%5COneDrive%5CDocuments%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EOneDrive%20Backup%20setup%20runs%3C%2FLI%3E%3CLI%3EOneDrive%20creates%20Documents%20link%20in%26nbsp%3B%25USERPROFILE%25%20(Two%20Documents%20directories%20now%20exist%20in%20Explorer)%3C%2FLI%3E%3CLI%3EOneDrive%20Backup%20starts%20moving%26nbsp%3B%25USERPROFILE%25%5CDocuments%20to%26nbsp%3B%25USERPROFILE%25%5COneDrive%5CDocuments%3C%2FLI%3E%3CLI%3E%25USERPROFILE%25%5CDocuments%20is%20now%20empty%26nbsp%3B%26nbsp%3B(Two%20Documents%20directories%20exist%20in%20Explorer)%3C%2FLI%3E%3C%2FOL%3E%3CP%3EAdditional%20steps%3C%2FP%3E%3COL%3E%3CLI%3EIf%26nbsp%3B%25USERPROFILE%25%5CDocuments%20is%20empty%3A%20check%20step%202%3C%2FLI%3E%3CLI%3EPaths%20need%20to%20be%20expanded.%20C%3A%5CUsers%5C%25USERNAME%25%5CDocuments%3C%2FLI%3E%3CLI%3EIf%26nbsp%3BC%3A%5CUsers%5C%25USERNAME%25%5CDocuments%20is%20empty%2C%20Delete%26nbsp%3BC%3A%5CUsers%5C%25USERNAME%25%5CDocuments%3C%2FLI%3E%3CLI%3ECheck%26nbsp%3BC%3A%5CUsers%5C%25USERNAME%25%5COneDrive%5CDocuments%20has%20created%20symbolic%20link%20to%26nbsp%3BC%3A%5CUsers%5C%25USERNAME%25%5CDocuments%3C%2FLI%3E%3C%2FOL%3E%3CP%3EIf%20this%20isn't%20done%2C%20applications%20writing%20to%20the%20absolute%20path%20of%26nbsp%3BC%3A%5CUsers%5C%25USERNAME%25%5CDocuments%20will%20not%20be%20backed%20up%2C%20and%20users%20will%20have%20files%20go%20missing%20during%20an%20OS%20Update.%20The%20application%20will%20not%20write%20to%26nbsp%3BC%3A%5CUsers%5C%25USERNAME%25%5COneDrive%5CDocuments.%20It%20will%20use%20the%20absolute%20path.%3C%2FP%3E%3CP%3EWhile%20two%20directories%20exist%2C%20the%20symbolic%20link%20is%20bugged%2C%20and%20will%20not%20correctly%20redirect%26nbsp%3BC%3A%5CUsers%5C%25USERNAME%25%5CDocuments%20to%26nbsp%3BC%3A%5CUsers%5C%25USERNAME%25%5COneDrive%5CDocuments%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20patch%20OneDrive%20setup%20to%20include%20these%20checks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F120042iD02547651BE6A917%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22OneDrive-DirJunction.jpg%22%20title%3D%22OneDrive-DirJunction.jpg%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F120041i4EC58AEB5A99B470%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22OneDrive-LS.jpg%22%20title%3D%22OneDrive-LS.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F120043i6DAE9A81CDBE7A89%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22OneDrive-Docs.jpg%22%20title%3D%22OneDrive-Docs.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-713349%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-716906%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20-%20Backup%20Sync%3A%20Documents%20-%20Additional%20check%20required%20to%20prevent%20duplicate%20and%20correct%20l%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-716906%22%20slang%3D%22en-US%22%3EI%20would%20recommend%20raising%20a%20ticket%20with%20Microsoft%20about%20this%20issue.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-739222%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20-%20Backup%20Sync%3A%20Documents%20-%20Additional%20check%20required%20to%20prevent%20duplicate%20and%20correct%20l%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-739222%22%20slang%3D%22en-US%22%3E%3CP%3EOneDrive%20support%20have%20informed%20me%20that%20they%20have%20passed%20this%20issue%20on%20to%20the%20Engineers%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%3A%3C%2FP%3E%3CP%3EJust%20adding%20another%20visual%20example%3A%3C%2FP%3E%3CP%3EExplorer%3A%20User%20Profile%20Local%20Path%20compared%20to%20User%20Profile%20Cloud%20Path%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122282i7C158814B15A4F1E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CloudPath-LocalPath.jpg%22%20title%3D%22CloudPath-LocalPath.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Neo Beum
Contributor

For build 18362.175+

 

When OneDrive initializes and runs first setup for Backup of Desktop, Documents and Pictures directories, the current setup logic creates a duplicate Documents folder in %USERPROFILE%.

An additional step is required to prevent the duplicate directory, and verify that the symbolic link for %USERPROFILE%\Documents is pointing to %USERPROFILE%\OneDrive\Documents

 

  1. OneDrive Backup setup runs
  2. OneDrive creates Documents link in %USERPROFILE% (Two Documents directories now exist in Explorer)
  3. OneDrive Backup starts moving %USERPROFILE%\Documents to %USERPROFILE%\OneDrive\Documents
  4. %USERPROFILE%\Documents is now empty  (Two Documents directories exist in Explorer)

Additional steps

  1. If %USERPROFILE%\Documents is empty: check step 2
  2. Paths need to be expanded. C:\Users\%USERNAME%\Documents
  3. If C:\Users\%USERNAME%\Documents is empty, Delete C:\Users\%USERNAME%\Documents
  4. Check C:\Users\%USERNAME%\OneDrive\Documents has created symbolic link to C:\Users\%USERNAME%\Documents

If this isn't done, applications writing to the absolute path of C:\Users\%USERNAME%\Documents will not be backed up, and users will have files go missing during an OS Update. The application will not write to C:\Users\%USERNAME%\OneDrive\Documents. It will use the absolute path.

While two directories exist, the symbolic link is bugged, and will not correctly redirect C:\Users\%USERNAME%\Documents to C:\Users\%USERNAME%\OneDrive\Documents

 

 

Please patch OneDrive setup to include these checks

 

 

OneDrive-DirJunction.jpgOneDrive-LS.jpg

OneDrive-Docs.jpg

2 Replies
I would recommend raising a ticket with Microsoft about this issue.

OneDrive support have informed me that they have passed this issue on to the Engineers

 

 

Note:

Just adding another visual example:

Explorer: User Profile Local Path compared to User Profile Cloud Path

CloudPath-LocalPath.jpg

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies