Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OneDrive Multiple Folders/HardDrives Sync

Tags:

onedrive

I have 3 hard drives. I would like to sync specific folders from each drive with MS OneDrive. One hard-drive cannot hold all the files from all hard drives.

How can I do this with OneDrive?

like image 797
Simcha Khabinsky Avatar asked Nov 03 '14 04:11

Simcha Khabinsky


People also ask

Can OneDrive sync multiple folders?

Go to the “Cloud Sync” tab and start by selecting OneDrive or a folder within it as the source. Then, click the "TO" area, check the "Multi-select" at the bottom left in the pop-up window, and then select multiple cloud drives or folders within them as the destination.

How do I only sync certain folders to OneDrive?

next to the notification area to see the OneDrive icon. > Settings. Select the Account tab, and select Choose folders. In the Sync your OneDrive files to this PC dialog box, uncheck any folders you don't want to sync to your computer and select OK.

Does OneDrive automatically sync folders?

Whenever you're online, any changes that you or others make will sync automatically. This article describes how to download the OneDrive sync app and sign in with your personal account, or work or school account, to get started syncing.


2 Answers

What I have done in the past is use symlinks to sync everything to OneDrive, and maintain the folder structure I want. For example, when coding, I like to keep my source folders on the root of C:, so that I can easily access it from menus (C:\coding). So what I'll do is create a folder in OneDrive called coding then symlink it to the root of C: using cmd.exe

mklink /d "C:\Link\Location" "C:\Users\USERNAME\OneDrive\Path\To\Source\Folder"
mklink /d "C:\coding" "C:\Users\USERNAME\OneDrive\coding"

Elevated permissions are required to do this.

You can do this with as many folders as necessary. Just remember, the source folder HAS to be in OneDrive. If you have existing folders that you want to sync, move them all to OneDrive and then symlink them to where they originally were located. Example:

mklink /d "C:\Users\USERNAME\Documents" "C:\Users\USERNAME\OneDrive\Documents"
mklink /d "C:\Users\USERNAME\Desktop" "C:\Users\USERNAME\OneDrive\Desktop"
mklink /d "C:\Users\USERNAME\Favorites" "C:\Users\USERNAME\OneDrive\Favorites"
mklink /d "C:\Users\USERNAME\Desktop\Vacation Pics" "C:\Users\USERNAME\OneDrive\Vacation Pics"
mklink /d "C:\Whatever I want" "C:\Users\USERNAME\OneDrive\Whatever I want"

--edit--

There is also the application Link Shell Extension that I have found extremely useful. Full instructions are found at the link, but... It integrates with Windows' Explorer shell and adds an item to the context menu. You can right click a folder to select it as the symlink source, then left click in the directory you want the symlink to be located. I think it does other things as well, but this is all I use it for. FYI, it requires VCRedist 2005 if memory serves, and does not include that dependency bundled.

like image 138
jparnell8839 Avatar answered Sep 21 '22 06:09

jparnell8839


For now, MS OneDrive client application only supports one folder. You would need to move all your files into that one folder.

You also cannot use Windows Explorer Libraries as the OneDrive folder - since those are NOT really folders.

Directory links are also not supported in some versions of windows. (http://www.howtogeek.com/174765/how-to-sync-any-folder-with-skydrive-on-windows-8.1/)

The Solution

What I used in the end is SyncDriver - does everything you need from any folder:

http://syncdriver.com/

First you set up the one folder where all the online stuff will go. Then you add any folder - from any drive - and it all goes to OneDrive. Simple and easy to use.

You also have options to only sync in specific directions:

  1. OneDrive => local
  2. local => OneDrive
  3. Bi-Directional
like image 22
Simcha Khabinsky Avatar answered Sep 21 '22 06:09

Simcha Khabinsky