Copy Directory Structure Using Tar

Need to copy or archive of directory structure without any files ? this worked for me : 

tar cnpf dir.tar `find . -type d`

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>