I want to duplicate directory 'foo' and all its subdirectories to 'foo_copy'.
1) I don't want 'foo_copy' to have several copies of some files or directories with one copy for each symlink to the file or directories.
2) I don't want 'foo_copy's symlinks to point back to the 'foo' directory.
I want an exact duplicate with:
1) 'foo_copy's files and directories residing in the same place as they did in 'foo' except now in 'foo_copy'.
2) 'foo_copy's symlinks pointing to the same files or directories they had pointed to in 'foo' except now in 'foo_copy'.
I don't know if my links are absolute or relative. I'm hoping for a solution that would work either way.
Bonus points, this is for Mac (FreeBSD) with
rsync version 2.6.9 protocol version 29.