Using mkdir from rsync

Olivier Thauvin nanardon at nanardon.zarb.org
Wed Apr 23 18:55:30 GMT 2008


Le mercredi 23 avril 2008, Manuel García a écrit :
> Hi all,
>
> When using rsync to copy a full directory path to another machine in
> my network, like dir1/dir2/dir3/,  mkdir fails because it have to
> create dir1 and dir2 prior to dir3, non of the 3 directories exist in
> the remote machine, so mkdir needs the -p option to do that, my
> question is: is there any way i can tell mkdir use the -p option when
> invoking from rsync?

I do think the message is about mkdir() syscall, not the command mkdir. It is 
impossible to ask to mkdir() to create the whole path, including missing 
parents.

Implementing such feature is surelly possible.

Best regards.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.samba.org/archive/rsync/attachments/20080423/87504307/attachment.bin


More information about the rsync mailing list