[clug] rsync - how to create path on remote server

Stephen Hodgman steve at namsys.com.au
Thu Jun 14 23:50:47 GMT 2007


I have a problem that I cannot see a way to solve with rsync.
We have a remote rsync server that we do not have shell access to, only 
rsync.
I need to create a backup of a directory tree on that server but I do 
not know if the the complete remote path exists.
e.g. My path is /A/B/C/D/ and I need to put this under the remote server 
tree /A etc
However, if for example the "C" directory does not pre-exist on the 
remote server my command
rsync -zav /A/B/C/D remotehost::Share/A/B/C
will not work.  If the "C" folder does exist it will.  How do I get 
rsync to "auto create"  the "C" folder?

Or, alternatively, what am I missing here? :-)
Thanks for your time

-- 
Stephen Hodgman
Namadgi Systems
+61 (0)407 182 355 (mobile)
+61 (0)2 6285 3460 (Office)
+61 (0)2 6285 3459 (Fax)

This message and its attachments contain confidential information and may also contain legally privileged information. This message is intended solely for the named addressee. If you are not the addressee indicated in this message or have received this message in error, you may not copy or deliver any part of this message or its attachments to anyone or use any part of this message or its attachments. Instead, you should permanently delete this message and its attachments (and all copies) from your system and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of Namadgi Systems must be taken not to have been sent or endorsed by the company or its management.                



More information about the linux mailing list