7
2
I have a file "a.txt" and its hardlink "ha.txt". If I open either of those files in notepad and save any changes it would appear in both files as they are still linked. But if I overwrite (copy) a.txt with another file with same name the hardlink breaks. What other operations do this?
Also, can I use it to backup a folder? Since if I ever change (overwrite) "a.txt" the hardlink automatically breaks and I have 2 copies. But because it depends on what I use to overwrite it (notepad certainly won't work) it ultimately depends on what operations in windows "breaks" the hardlinks and make copies?
Similar to https://superuser.com/questions/306548/windows-7-mklink-hard-links-attributes-expected-contents-do-not-affect?rq=1 and http://superuser.com/questions/907431/editing-the-hardlink-doesnt-edit-the-original-file/961953#961953
– GlennFromIowa – 2015-08-24T12:35:15.697