1

I am trying to mirror a directory structure onto another disk. The problem with built in tools like RoboCopy is that they get into an infinate loop with the symlinks (think the Users folder).

I would like a utility that safely mirrors the source to the dest while leaving all symlinks in place.

asdffffff
  • 109
  • 1
  • 5
  • The `/SL` flag in robocopy makes it copy the actual link and not the target, so that would fix the issue in Windows... – Nathan C Apr 08 '14 at 14:44
  • But it still follows the link – asdffffff Apr 08 '14 at 15:12
  • Why would you be mirroring the `users` folder(s) in Windows elsewhere? – TheCleaner Apr 08 '14 at 15:20
  • Because that is the easiest example to use. Other folders do the same thing. I am cloning a source disk to a destination disk but I do not want to do a block level copy. I simply want to copy directory\file structure 1 to 1 – asdffffff Apr 08 '14 at 15:22
  • In Windows at least you'll run into issues in the `users` directory is why I ask. The `/xj` switch in Robocopy takes care of this, but if you want a "clone" you should simply do a block level copy. – TheCleaner Apr 08 '14 at 15:46
  • why? That means I have to waste time copying a ton of free space for no reason. The way you "clone" in OSX is a file system level copy. You can even clone linux installations this way. – asdffffff Apr 08 '14 at 16:19
  • Also /xj totally skips creating the junctions so they are not even there – asdffffff Apr 08 '14 at 16:20

0 Answers0