rsync to a symlink directory

Gwendal Stevanazzi stevanazzi at aleks.com
Wed Sep 25 00:55:00 EST 2002


On Tue, 24 Sep 2002, jw schultz wrote:

> [edited]
> On Tue, Sep 24, 2002 at 12:52:58PM -0700, Gwendal Stevanazzi wrote:
> > On Tue, 24 Sep 2002 tim.conway at philips.com wrote:
> > > Here's the script:
> > > rsync dira/file dirc
> >
> > This script runs ok
> > But here is a script which doesn't work for me:
> > rsync -R dira/file ../dest/
>
> The culprit appears to be the -R option.  You can avoid that
> by using a more complete path on the destination.

Well, the problem is that I'm trying to use this in a script where the
files are given as paramaters. So I can do

rsync -R dir1/file1 dir2/file2 dir3/file3 ../dest

which is not working in all cases
or

rsync dir1/file1 ../dest/dir1
rsync dir2/file2 ../dest/dir2
rsync dir3/file3 ../dest/dir3

but the second solution, using a remote shell like ssh, is much slower
and much harder to implement ...





More information about the rsync mailing list