Creating intermediate directories?

Jon Drukman jsd at cluttered.com
Wed Jan 26 18:28:46 GMT 2005


Forgive me if this is a FAQ, but Google hasn't helped me find what I 
want to know.

If I have a local file at:

/some/local/path/file.zip

And I want it to arrive on the remote machine at:

/other/foreign/directory/file.zip

But only /other exists, is there any way to have rsync create the 
intermediate directories?  I know that if I have 
/foreign/directory/file.zip locally I can rsync "foreign" with the -r 
option, but the path structure on the local machine does not match that 
of the remote machine.

-jsd-



More information about the rsync mailing list