Copy a directory without contents
Hi
Is there a way to copy a directory without copying the contents, but preserving ownership, timestamp etc of that directory? I've looked at the cp man page, but I don't think it supports it. I'm thinking one would have to write a script to gather the info, and then mkdir, chown and touch. Does this seam right? |
A friend just gave me a way:
rsync -d source dest Thanks anyway :-) |
Use
Code:
rsync -dt source destination |
All times are GMT -5. The time now is 04:35 PM. |