Skip to main content

Setup Folder to be Backed Up to OneDrive

Make sure OneDrive is installed on your computer first. If OneDrive is not set up on your computer, you may find the download by going to the Microsoft website.

https://www.microsoft.com/en-ca/microsoft-365/onedrive/download 

The folder location you wish to backup must be known next. In this example, we'll back up the My Drawings folder inside the Documents folder.

The Command Prompt window must be opened as the following action. To accomplish this, type cmd and then click Command Prompt in the bottom left corner of your Windows screen.

Type the following into the command prompt (or copy and edit the highlighted text from below):

mklink /j "%UserProfile%\OneDrive\My Drawings" "C:\Users\syed\Documents\My Drawings"

The newly created folder in your OneDrive folder will be the text highlighted in green. You should probably give this the same name as the folder that is being backed up.

The file path for the folder you want to back up is indicated by the yellow text.

When you click enter on your keyboard after entering this, you should get a success message that looks like this:

After receiving the success notification, return to your OneDrive folder where you should now find the newly created folder named My Drawings (or whatever folder you backed up) there. Every time you modify or update a file in its original location, a copy of it is also added to the OneDrive folder and synced there. Once the setup is complete, check to see whether your files are uploading successfully because OneDrive seems to sync every 10 to 20 minutes.