On 24 Dec 2000, lemon_3 <[EMAIL PROTECTED]> wrote:
> Hi, rsync,
>   hi
> i have two servers.i use remote server to mirror local server.when i create a new 
>directory on local server,i hope rsync can automatically create the same directory on 
>the remote server
> 
> i run rsync --daemon on remote server and
> rsync -avz /somedirectory/ remoteip::test \
> --password-file=/etc/rsyncd.passwd on local server

A trailing slash on the source name tells rsync to copy the contents
of the directory, rather than the directory itself.  If you say

   rsync -avz /somedirectory remoteip::test 
                            ^--- look, nothing here

then you will get a (possibly new)  directory called somedirectory
inside the test modile on the remote machine.

-- 
Martin Pool, Human Resource
Linuxcare. Inc.   +61 2 6262 8990
[EMAIL PROTECTED], http://linuxcare.com.au/
Linuxcare.  Putting Open Source to work.

Reply via email to