I want to replicate a complex directory structure from one Linux server to another remote server start at a certain sub-directory.
I don't want the contents of the files, I just want to preserve the structure, owner and permissions as the server to be cloned contains a large volume of data that must not be copied to the new machine.
I'm guessing that this could be done somehow by tar-ing up the folder structure and un-taring it on the remote machine. Or by using rsync to copy without sending the data. Or possibly by using find to create a shell script.
If anyone has the one-liner at hand that accomplishes this, I would appreciate it.