Mark Minasi's Tech Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
spam spam bacon spam

Avatar / Picture

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 72
Reply with quote  #1 
I never really messed around with junction points, so I'm still in the "OMG!!! DON'T TOUCH THAT!!!" phase 😃

Flipping my middle finger to "da' man", I threw caution to the wind and created a hard link.

But there's something that I don't understand about it - can somebody please explain?  In fact, anything you can add would be helpful, as I'm not even sure I'm using the correct terminology.
Please write slowly, so I can follow along.

What I did:

I have the OneDrive sync client installed.  The config is standard ~ the parent OneDrive folder is under my profile on the C:\ drive.

My D:\ is an external Seagate that I pretty much always leave connected, except when I don't.
I keep a ton of technical books and documents on the Seagate (among lots of other stuff), and recently decided I should have the books mirrored in the cloud, "just in case."

So I created a hard link using this command:

mklink /j "%UserProfile%\OneDrive\My Books" "D:\My Books"

It synced.  All was well.  About 2 weeks later, I decided that I didn't need it to be syncing changes, so using the settings panel in the OneDrive client, I unchecked "My Books".

I thought that the cloud "My Books" folder would remain in the cloud and the local "My Books" folder would remain on my D:\ drive, but they just wouldn't sync changes.

However, the local folder was deleted.  That sucked, because I USE THEM.... grrrr.... I dig thru them, a couple times a week at least.  (I don't edit them though, so there's no reason to continuously sync them.)

I understand that the sync client is designed to "remove" any local item when you only want it in the cloud, but does that work thru hard links, as well?

I guess I was thinking that because my D:\ drive was not part of the OneDrive "mothership", that it wouldn't be touched.  Lol.... Actually, I got kinda pissy when I saw the folder missing from my local drive, thinkin' "YO!  WHAS WIT CHEW TOUCHIN' MA' SCHITT?!?"

Besides wanting to know how these links work, is there like a "no mklink" command I can use to sever a link between the original and the "mirror", leaving both sides intact?  

Argh.
You'd laugh yer ass off if you watched me type this post... in trying to figure out how to describe my question, I was confusing myself even more.

~Spammy


__________________
If at first you don't succeed, destroy all evidence that you tried.

0
Infradeploy

Avatar / Picture

Senior Member
Registered:
Posts: 179
Reply with quote  #2 
Just saying: There is a recycle bin in onedrive for your convenience
__________________
Have SpaceSuit, Will Travel

0
spam spam bacon spam

Avatar / Picture

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 72
Reply with quote  #3 
Quote:
Originally Posted by Infradeploy
Just saying: There is a recycle bin in onedrive for your convenience


ROFL!!

It wasn't that bad, though... I just went back into the sync client settings and checked the box for "My Books" again and they magically re-appeared on my D:\ drive.



__________________
If at first you don't succeed, destroy all evidence that you tried.

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.