What's the difference between a Windows hard link and a Linux hard link?

3

The open source package BackupPC does not run on Windows due to its lack of support for hard links. I did a search and came across this document referring to hard links in Windows.

Are these somehow different than Linux hard links, and is there really no equivalent?

Scott Szretter

Posted 2011-05-20T00:30:17.910

Reputation: 1 433

Is this hard link "issue" noted somewhere as being the reason that there is no Windows port? (Hard link being a method to conserve space, but if nothing else would think any hard link option could be disabled?) A quick look seems to show that you can use Windows clients along with a Linux server. http://www.google.com/search?sclient=psy&hl=en&client=seamonkey-a&rls=org.mozilla%3Aen-US%3Aunofficial&source=hp&q=backuppc+for+windows&btnG=Search

– therube – 2011-05-20T02:00:28.080

Answers

2

Firstly, hard-links are a feature of the filesystem, MS Windows does not support hard-links on FAT32 devices. Nowadays this typically means USB memory sticks.

Secondly, NTFS supports three kinds of links and the exact capabilities and applicability may differ from Linux hard-links - for example, whether you can hard-link directories.

BackupPC is written in Perl. So it ought to be possible to find out what modules it depends on and whether those are availble on Windows. You can still backup from Windows clients. Presumably you want to backup to a Windows server?

The Requirements for BackupPc states that NTFS can't be used but doesn't explain why. (I don't know whether the MS SMB protocols allow for hard-link manipulation, or whether Linux NTFS drivers don't)

BackupPC uses hardlinks to pool files common to different backups. Therefore BackupPC's data store (TOPDIR) must point to a single file system that supports hardlinks. [...]
Any standard linux or unix file system supports hardlinks. NFS mounted file systems work too (provided the underlying file system supports hardlinks). But windows based FAT and NTFS file systems will not work.

You could email the author?

RedGrittyBrick

Posted 2011-05-20T00:30:17.910

Reputation: 70 632

1

NTFS does indeed support links. However, very few people, even Microsoft-qualified people, seem to be aware of it, and very little Windows software has any facility for taking advantage of it. This article has more information.

Norky

Posted 2011-05-20T00:30:17.910

Reputation: 151