Re: cp(1) -n option for rsync?

2002-12-06 Thread Sander van Zoest
On Fri, Dec 06, 2002 at 01:11:10PM -0800, Wayne Davison wrote: > On Fri, Dec 06, 2002 at 11:53:08AM -0800, Sander van Zoest wrote: > > I would like to be able to use rsync to mirror some directories, but > > to explicitly *not* override any files that already exist on the other > > side. > I believ

Re: cp(1) -n option for rsync?

2002-12-06 Thread tim . conway
You could find on the source (exclude directories), and use that output for --exclude-from=. That would be the one case where include/exclude patterns would be easy - no unexpected matches or misses. Yeah, I like that one best. to sync remotehost:/path/to/dir to /dir

Re: cp(1) -n option for rsync?

2002-12-06 Thread Wayne Davison
On Fri, Dec 06, 2002 at 11:53:08AM -0800, Sander van Zoest wrote: > I would like to be able to use rsync to mirror some directories, but > to explicitly *not* override any files that already exist on the other > side. I believe you're looking for the --ignore-existing option. I'm not sure when it

Re: symbolic links

2002-12-06 Thread Dave Dykstra
I'm sorry, I completely glossed over the -u and -b in your original email. I take back what I said and agree it is a bug. I can reproduce what you saw: mkdir foo bar echo hey >foo/file1 ln -s file1 foo/file2 sleep 1 echo there >bar/file1 echo guy >bar/file2 ls -l foo b

cp(1) -n option for rsync?

2002-12-06 Thread Sander van Zoest
Hi, I looked in the archives and documentation and didn't notice anything of this. The closest thing I found was -update, but that doesn't do exactly to what I would like. I would like to be able to use rsync to mirror some directories, but to explicitly *not* override any files that already exis