non-existing parent directories

Darin Perusich Darin.Perusich at cognigencorp.com
Thu Oct 19 15:11:21 GMT 2006


hello,

is there a way for rsync to create non-existing parent directories when
syncing files to a destination? something similar to 'mkdir -p
non-existing/directory'. i'm doing 'rsync -r /path/to/source
/path/to/non-existing/directory', and the 'non-existing/directory'
location doesn't exist.

the errors i get is...
rsync: mkdir "/path/to/non-existing/directory'," failed: No such file or
directory (2)
rsync error: error in file IO (code 11) at main.c(381)
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)

thanks

-- 
Darin Perusich
Unix Systems Administrator
Cognigen Corporation
395 Youngs Rd.
Williamsville, NY 14221
darinper at cognigencorp.com


More information about the rsync mailing list