Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to copy a directory structure with Files, I am not looking for content a 0 byte file will do. I just need to copy the directory tree with 0 byte files and links preserving the properties of the file like- Permission, Owner, Group, ACL.

How do I copy / create a tar ball/ rsync with Directories and 0 byte files with same ACL's, permissions, User, group and others.

share|improve this question

You can do that on Solaris with rcp, although it does give you full file contents. You can truncate the files afterward.

rcp -p foo bar

If you explicitly don't want the file contents, then this might not be the best option.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.