The Samba-Bugzilla – Bug 2320
rsync option to rsync directory structure only
Last modified: 2005-04-01 11:21:21 UTC
Please forgive me if this is a duplicate RFE. I searched but did not find one.
I need the ability to replicate/rsync the directory structure of certain
filesystems but not the contents. I would love for an option like "--dir-only"
(or whatever you would like to call it).
You can do this:
rsync -av --include='*/' --exclude='*' source destination