I am having problem rsyncing sub-folders, like: #rsync -avz /cvs/test/test1/test2/test3/index.html dest::dan/test1/a/ Sun Microsystems Inc. SunOS 5.9 Generic May 2002 building file list ... done index.html wrote 456 bytes read 106 bytes 1124.00 bytes/sec total size is 365 speedup is 0.65 That worked. But thjis does not work #rsync -avz /cvs/test/test1/test2/test3/index.html dest::dan/test1/test2/a/ Sun Microsystems Inc. SunOS 5.9 Generic May 2002 building file list ... done rsync: connection unexpectedly closed (78 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(165) What am I doing wrong? Thanks -Daniel
On Wed, Dec 01, 2004 at 12:48:54PM -0500, Daniel Teklu wrote:> I am having problem rsyncing sub-folders, like:Rsync will only create one level of missing directory hierarchy on the destination. Beyond that, it assumes that you made a mistake in specifying the destination. You can kluge around the limitation by creating an empty directory and rsyncing it into place on the destination prior to doing the actual transfer. ..wayne..