I want to copy my directory structure excluding the files. Is there any option in the tar to ignore all files and copy only the Directories recursively.
for i in `find . -type d`; do mkdir -p /tmp/tar_root/`echo $i|sed 's/\.\///'`; done
pushd /tmp/tar_root
tar cf tarfile.tar *
popd
# rm -fr /tmp/tar_root