Bug 2320 - rsync option to rsync directory structure only
Summary: rsync option to rsync directory structure only
Status: CLOSED WORKSFORME
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.3
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
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