creating dest directory recursively

Manish Dubey mdubey at
Tue Apr 15 08:52:32 EST 2003

A bug-patch/feature i posted a long time ago, but
never got committed to CVS is for rsync to create
destination dir recursively.

By default following works with rsync:

rsync -a ~/dir1 ~/dir2

rsync will create dir2 if it does not exist. However
following does not work if dir2 and dir3 do not exist:

rsync -a ~/dir1 ~/dir2/dir3

for all my uses i find this feature, of creating
destination directory, extremely handy. I can repost
the patch if others might find it useful and if it can
be incorporated into main source code.

Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more

More information about the rsync mailing list