On Wed, Nov 10, 2010 at 5:06 AM, Helmut Jarausch
<[email protected]> wrote:
> Hi,
>
> the following behaviour of rsync puzzles me.
>
> I have the following situation
>
> <Source>/A                this is a symlink !
>
> <Dest>/A                  this is a real directory
>
>
> now
> cd <Dest>/A
> rsync -auHz -ni --rsh=ssh --delete --exclude='/A/' <source
> machine>:<Source>/ .
>
> shows that it's going to delete the folder <Dest>/A
>
> Can anybody please explain me why?

I'm not clear on some of your details, but perhaps you could try
putting full paths to the dirs/files in your script, including the
destination dir. Also, remember that '/A' and '/A/' are not the same
wrt the source.

g'luck

Reply via email to