symlink in -R src_dirlist and real dirs on target
-
lopiuh at googlemail.com
Mon Dec 2 13:26:04 MST 2013
ok. thats straight through, but in my case i would like to delete dest/dir3
because it does not exist anymore in the source dir-tree. Do you have any
idea? I could use
parrentdir/ instead of parrentdir/./dir1/ and parrentdir/./dir2/ as source
but then I have the symlink problem you solved by adding the slash after
the symlinks.
Thanks
On Mon, Dec 2, 2013 at 9:18 PM, Kevin Korb <kmk at sanitarium.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> It would not. Rsync only operates on the sources you tell it to. If
> the source is no longer specified then --delete would not operate on
> it in the target. This is why it is not recommended to use
> /path/to/source/* as the source as that will be expanded to multiple
> sources.
>
> On 12/02/13 15:15, - wrote:
> > Hi Kevin,
> >
> > thanks. I'll try this again. I did before but got the impression
> > that on subsequent runs, rsync would not recursivly run through
> > dir1 and dir2. I hope I just was very tired ;-)
> >
> > another topic: Do you have an idea if rsync could delete "dir3" if
> > dest/ consists of dir1 dir2 dir3 and I use
> >
> > rsync -RaH --stats --delete --progress --itemize-changes dir1/
> > dir2/ dest/
> >
> > Thanks
> >
> >
> >
>
> - --
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> Kevin Korb Phone: (407) 252-6853
> Systems Administrator Internet:
> FutureQuest, Inc. Kevin at FutureQuest.net (work)
> Orlando, Florida kmk at sanitarium.net (personal)
> Web page: http://www.sanitarium.net/
> PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlKc6xMACgkQVKC1jlbQAQdzJwCgnmTgLJJXXnJUqqUhVk2C2/kE
> lA4Amwbv9tPRiGTV0idBvF87R5bexFCR
> =9Sli
> -----END PGP SIGNATURE-----
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20131202/9827c809/attachment.html>
More information about the rsync
mailing list