42

I installed Google Drive and want to use it in order to backup some data scattered across my HDD.

I cannot get it to use these different directories because I can set only one folder in Google apps. I tried to create junctions and hard links to the outer directories, however it does not work ... any ideas how to correctly set it?

slhck
  • 228,104
Darqer
  • 996

11 Answers11

21

You could use what I used when I had the same issue with Dropbox. And that's to use: NTFS Junction Points like you said.

It's pretty much a worm hole in the file system that makes a shortcut without appearing like one to applications. There are downsides to using these as an antivirus would scan both folders (despite physically being the same), amongst other things.

Try something like Junction Link Magic instead of command lines if it helps.

Update: it appears JLM does not create junction points the way we wanted. Instead use Junction Master which creates hard links, and that will lie to applications the way we need it to. You can read more here.

enter image description here

Creating a link in Junction Master will allow Google Drive to see it in the options.

options window for google drive

If we look at it in terms of shortcuts, consider a Junction Link as the shortcut file, and Destination as the original location.

And consider looking at tutorials to do this for Dropbox, as Google Drive similarly has only a single sync folder.

Oh and I'd avoid juntion points between drives!

Chindraba
  • 1,983
Jay Wick
  • 6,779
  • 7
    I tried and GoogleDrive application does not recognize it – Darqer May 04 '12 at 00:52
  • Did you only try Junction Link Magic? Maybe try Junction Master? Strange, I'll have to go home and try this myself. – Jay Wick May 04 '12 at 00:56
  • 2
    Application can recognize junctions so I think that google does not synchronize with it. – Darqer May 04 '12 at 09:37
  • 3
    @Darqer: just tried JLM and confirmed it doesn't work. Tested Junction Master and it works fine with Gdrive. Updated answer – Jay Wick May 07 '12 at 13:11
  • 3
    @jay - It just occurred to me that the actual files are residing in the Google Drive directory - you move them there from their original location - and then create a hard link (using junctionmaster or otherwise) in the original location to point to the directory under the Google Drive. I thought it was the other way around which is why I couldn't get it working. Any idea why putting the hard link inside the Google Drive which points to the directory in it's original location? – Howiecamp Sep 29 '12 at 02:02
  • @Howiecamp: that's right, it's a matter of direction. As we found out above Google Drive refuses to show hardlinks, Windows Explorer is fine either way. It looks to only work when Gdrive has access to the real folder. – Jay Wick Sep 29 '12 at 04:33
  • There is no such thing as hard links to directories — MSDN. It is unclear what do you mean by this. 2. There is absolutely no need in tools like Junction Master. It does not somehow make links to folders work. What it does is create a new folder under Google Drive, move all content there and create a junction in place of the original folder. There is no magic here. The same can be done using the standard mklink.
  • – ᄂ ᄀ Mar 19 '17 at 20:23
  • To those talking about "folder hard links" — https://superuser.com/a/269347/94068 – ᄂ ᄀ Mar 19 '17 at 20:26
  • What is the program doing differently than writing this in console mklink /J linked_name original_folder? – Qwerty Jan 04 '22 at 22:58