I am trying to create a new directory which has the whole replica of another directory structure. Lets say the directory one is A and directory two is B. In this case, I want the whole directory structure of A inside B wherein I do not copy any files but do consider and copy all symbolic links.
In this way, I want to take care of local and remote files altogether.
i.e.
cd <A_directory>
find . -type d | cpio -pdvm <B_directory>
this helps to get me the whole of A directory structure inside B without symbolic links. AR: Have to add symbolic links and directories properly on top of this?
The rsync does not handle symbolic links and takes a lot of time. This question is different from just a normal rsync.