symlink in -R src_dirlist and real dirs on target
Kevin Korb
kmk at sanitarium.net
Mon Dec 2 13:37:52 MST 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hmmm, I am not sure this is possible. If you specify a source that no
longer exists rsync will error. If you don't specify the source then
rsync will not apply --delete to it on the target. You could always
leave it as an empty directory and rsync would empty it on the target.
Maybe someone else has a creative idea.
On 12/02/13 15:26, - wrote:
> 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
> <mailto:kmk at sanitarium.net>> wrote:
>
> 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
>
>
>
>
> -- 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
>
>
- --
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
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/
iEYEARECAAYFAlKc76AACgkQVKC1jlbQAQcMqwCg1r55auDyN4ONzfpd/POaBvHP
ZZ8AoMeerQ/Xh5GC0ZPOmfjLIeXDuqx6
=/PYy
-----END PGP SIGNATURE-----
More information about the rsync
mailing list