Tuesday, June 30, 2020

Backup files in MicroSoft OneDrive without loosing existing folder structure


Problem:

To backup files/folders in OneDrive, you need to move the files/folders under "OneDrive" cloud folder.
This can be painful if you already have applications/links referring to this source folder.
Moving your folder to 'OneDrive' cloud folder is disruptive here.
Alas! Those applications will break, and it is not easy to fix the links to new locations one by one.

Solution:


  1. Move the files/folders to 'OneDrive' cloud folder as you do normally.
  2. Create a link to the new folder under 'OneDrive' from previous location using mklink' utility.  This is explained here: How to take advantage of symbolic links in Windows 10

Example:
a.) Win + R, "CMD", Ctrl + Shift + Enter to enter Administrator mode.
b.) C:\Users\Saravanan\Desktop>  mklink /D C:\Users\Saravanan\Desktop\Step_One "C:\Users\Saravanan\OneDrive - My corportation\Step_One"

Here, I moved my "Step_One" folder from Desktop to OneDrive, and then I created a link in Desktop to new location of this folder under OneDrive.

This will make transparent redirect of file pointers to new locations for your applications, and make your OneDrive transition easy :-)


No comments:

Post a Comment