resolving difference in interface between rsync and cp/rcp/scp

Erick Tryzelaar erickt at dslextreme.com
Fri Oct 27 03:32:40 GMT 2006


I've run into a situation where we'd like to replace rcp with rsync, but 
we've run into a difference in interface, which is causing us problems. 
Here's the problem. If we run this in rsync:

 > mkdir tmpdir; cd tmpdir
 > mkdir a; touch a/b
 > rsync -r a b/
 > ls b
a/

But for all the other programs, we get something different:

 > cp -r a c/
 > ls c
foo
 > cp -r a d/
 > ls d
foo
 > cp -r a e/
 > ls e
foo

Is there a flag for rsync that I'm missing that supports this behavior? 
I was unable to find one.

Thanks,
-e


More information about the rsync mailing list