incremental directory searche in rsync 3.0.6
Jignesh Shah
jignesh.shah1980 at gmail.com
Tue May 19 07:19:54 GMT 2009
Okkkk... If I am not wrong then this behavior is same from older
rsync2.6.0 to latest rsync3.0.6.
Thanks.
On Tue, May 19, 2009 at 12:33 PM, Matt McCutchen <matt at mattmccutchen.net>wrote:
> On Tue, 2009-05-19 at 12:19 +0530, Jignesh Shah wrote:
> > Thanks Matt, does that means, in incremental recursion (to create the
> > missin dirs), --implied-dirs/--no-implied-dirs has no importance?
>
> It is incremental recursion that has no importance. You'll get the same
> result with or without incremental recursion, though the steps may be
> done in a different order.
>
> The missing directories will be /created/ regardless of the
> --implied-dirs setting. The difference is that with --implied-dirs,
> their attributes will be copied from the corresponding source dirs
> according to your options (-tpog, etc.), while without --implied-dirs,
> rsync will not set their attributes.
>
> --
> Matt
>
> On Tue, May 19, 2009 at 11:24 AM, Matt McCutchen
> <matt at mattmccutchen.net> wrote:
> >
> > On Tue, 2009-05-19 at 10:58 +0530, Jignesh Shah wrote:
> > > I was in under impression that rsync 3.0.5/3.0.6 creates all
> > the
> > > missing directories in the path but I think I am wrong.
> > Could any one
> > > tell me is it possible to create all missing dirs in path at
> > > destination side if not exists. Currently, I have been
> > getting below
> > > errors.
> > >
> > > rsync -avz /tmp/mytest/rsync-test/dir-test/parent-dir/
> > > desthost:/tmp/mytest/rsync-test/dir-test/parent-dir/
> > > sending incremental file list
> > > rsync: mkdir "/tmp/mytest/rsync-test/dir-test/parent-dir/"
> > failed: No
> > > such file or directory (2)
> > > rsync error: error in file IO (code 11) at main.c(576)
> > > [receiver=3.0.6]
> > > rsync: connection unexpectedly closed (9 bytes received so
> > far)
> > > [sender]
> > > rsync error: error in rsync protocol data stream (code 12)
> > at
> > > io.c(600) [sender=3.0.6]
> > >
> > > I want rsync to create
> > "/mytest/rsync-test/dir-test/parent-dir/"
> > > directory heirarchy at destination. I also tried with
> > --relative and
> > > --no-implied-dirs/--implied-dirs but no luck.
> >
> >
> > https://bugzilla.samba.org/show_bug.cgi?id=4621#c3
> > http://lists.samba.org/archive/rsync/2007-October/018993.html
> >
> > Rsync does not create parents of the specified destination
> > directory.
> > You can instead move to a higher destination directory and use
> > --relative to place the files appropriately under it, and
> > rsync will
> > create intervening directories as necessary:
> >
> > rsync -avz
> > --relative /tmp/mytest/rsync-test/dir-test/parent-dir/
> > desthost:/
> >
> > The behavior here is the same regardless of incremental
> > recursion.
> >
> > --
> > Matt
>
>
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the rsync
mailing list