Feature request: Being able specify that the destination should
follow source directory structure.
Hans Deragon
hans at deragon.biz
Fri Feb 25 23:13:53 GMT 2005
Greetings.
If I do this:
rsync --hard-links
one.server.com::"module/somedir/images/redhat/3.0WS/en/os/i386
module/someotherdir/1.0/images/redhat/3.0WS/en/os/i386" /export/distros
I get:
/export/distros/i386/... and a conflict between the two sources.
I want for destination:
/export/distros/images/redhat/3.0WS/en/os/i386
/export/distros/1.0/images/redhat/3.0WS/en/os/i386
In other words, I would like to see an option that says to rsync to create
some of the subdirectories found in the source directory. Something like:
rsync --hard-links
one.server.com::"distros/somedir/'images/redhat/3.0WS/en/os/i386'
distros/someotherdir/'1.0/images/redhat/3.0WS/en/os/i386'" /export/distros
Notice the ' which would be an indicator for the list of subdirectories to
recreate on the destination. ' is a valid character for filename, so
something else could be used, but I have put it there as an example.
Because I want to maintain the hard links, I do not want to run two separate
rsync commands to perform this copying.
Best regards,
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc. Open source:
http://www.deragon.biz http://facil.qc.ca (Promotion du libre)
mailto://hans@deragon.biz http://autopoweroff.deragon.biz (Logiciel)
More information about the rsync
mailing list