Are hardlinks and junctions bi-directional?

Associate
Joined
24 Feb 2004
Posts
1,083
Location
Leeds/Cyprus
Been reading up on hardlinks on file://localhost/C:/Program%20Files/LinkShellExtension/Doc/linkshellextension.html

So decided to take advantage of this and use Dropbox to wirelessly sync my documents across all my computers. So I select the folder where I keep most of my documents, and drop it as a Junction in the Dropbox folder.

Now, my original intent was to just work off the Dropbox folder on my lappy. But then it occurred to me that there will be times when I'll be working without an internet connection and won't be able to rely on Dropbox for the latest version of the files, so I figured I'd pick up the \My Dropbox\Docs folder and drop it as a Junction on C:\Docs. So the inverse of what I did on my desktop.

The rationale is, if my laptop is offline and doesn't have the latest version of the documents in its Dropbox folder, I get them off my USB stick and copy them into C:\Docs - then, next time I find an open network, the contents of my Dropbox folder will be automatically synced with the contents of c:\Docs

I can only see one snags and because that document describing Hardlinks is quite technical I can't figure it out from reading it: that Junctions are not bi-directional. Does it make a difference which is the source and which is the target of the junction? If I'm changing things at C:\docs (the target of the Junction on my laptop), will \My Dropbox\Docs be automatically updated? Or does the source of the junction ALWAYS function as the source, meaning that the contents of C:\Docs will be automatically overwritten by the contents of \My Dropbox\Docs EVEN WHEN THE FORMER ARE MORE RECENT?

Does the way I phrased my question even make sense? I get confused just reading it back to myself!:confused:
 
Well, as I said, I want to sync my documents via Dropbox without the bother of having to run Synctoy and use a USB stick and such. As soon as I edit something on any computer I use, it'll get uploaded to the cloud and synced across all of them.
 
I don't use drop box, but couldn't you simply change which folder drop box monitors? i.e. have it point to your Documents - so you don't even need to worry about hardlinks and so forth?

Also what's wrong with a good old fashioned network share? :p
 
Well, I use my Dropbox for other things too, so that would be a hassle. And the point of it is to sync over the internet when I'm not at home, so network share wouldn't do.
 
Well, I did what I planned as I described it, and they do seem to be bi-directional. A file altered on my laptop's C:\Docs folder is automatically uploaded to Dropbox, and almost instantaneously the new version appears on my desktop PC's Docs folder! :)
 
I suspected as much, but your description was somewhat wordy! :p

The idea of hardlinks in the end is to avoid duplicates or move files without breaking something. I know some people use them to move their steamapps folders without reinstalling Steam etc.
 
Back
Top Bottom