Home > FreeBSD > Copy Directory Structure Using Tar

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`

  1. No comments yet.
  1. No trackbacks yet.