Using mkdir from rsync

Olivier Thauvin nanardon at
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 

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 :

More information about the rsync mailing list