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-

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to