Bug 2320 - rsync option to rsync directory structure only
rsync option to rsync directory structure only
Status: CLOSED WORKSFORME
Product: rsync
Classification: Unclassified
Component: core
2.6.3
All All
: P3 enhancement
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-02-07 08:15 UTC by Scott
Modified: 2005-04-01 11:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott 2005-02-07 08:15:22 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).

Thanks
Scott
Comment 1 Wayne Davison 2005-02-07 10:40:59 UTC
You can do this:

rsync -av --include='*/' --exclude='*' source destination