I use rsync with cmd line: "rsync.exe -vrtlcd /cygdrive/c/test/rsyncroot/111111/001/ 127.0.0.1::root/111111/001 --delete " It reports me: rsync: mkdir "111111/001" (in root) failed: No such file or directory (2) Looks like it will not craate the non-exist parent directory . How to resolve the problem? thanks in advance for any information. -- ÀîÖ¾¼á <lzj_mailist@163.com>
On 20 Jun 2007, at 08:41, =C0=EE=D6=BE=BC=E1 wrote:> I use rsync with cmd line: > "rsync.exe -vrtlcd /cygdrive/c/test/rsyncroot/111111/001/ =20 > 127.0.0.1::root/111111/001 --delete " > > It reports me: rsync: mkdir "111111/001" (in root) failed: No such =20 > file or directory (2) > Looks like it will not craate the non-exist parent directory . > How to resolve the problem?create the parent directory manually or change target. You can do the =20 former remotely using ssh. Giuliano=
On 20 Jun 2007, at 11:37, EffectCrash wrote:> Thanks. > Bug I just have a question. I dont know the abspath on the remote. > How do i manually create the dir? Can you give me an example? >if you do not know the absolute path how do you know that you are not overwriting some existing directory structure? rsync uses ssh, so the relative paths should routed to the home directory of the user you are using. Also, you appear to have the remote host as 127.0.0.1, that is not remote at all! Since you use the --delete option I would be very careful at the what I use for target path and *never* use a relative path. However, since rsync uses ssh, if you run the command to create the directory structure from ssh giving the same path you give to rsync, you should create the directory in the correct absolute location. But remember what I said above. Giuliano