Copy Files from One Drive to Another and Keep Hard-Link in Windows

hardlinkntfsrobocopy

I have drive A: with 16G Space and plenty of files, due to the Hard-link feature in NTFS, the files together is 15G but only takes 2G of real space.

I like to copy all those files to drive B: which is a 4G USB disk, and formatted as NTFS

A: is a tool set in local disk, B: is USB disk for distribution. So I cannot use a bigger USB disk (for the reason of cost), and B: should have all files that can work on another computer.

I tried: robocopy, rsync of windows, and plenty of other disk-clone, backup solution etc.

None work, all simply give out of space error.

My question: how can I copy the files from A: to B: and keep of the hard-link structure?

Any solution welcome, as long as not reboot to non-windows or something. I am using Windows 7.

Best Answer

Have you tried ln.exe with "Smart Copy" function --copy?

Smart Copy basically creates a copy of the directory structure from the source location to the destination, but it preserves the inner hardlink structure and inner junction/symbolic link relations of the source, and recreates this inner hardlink structure and inner junction/symbolic link relation at the destination location

Smart Copy is a must if e.g. the whole content of a hard disk, which has lots of hardlinks/junctions/symbolic links, should be copied to another hard disk.