Please reply to the list, not to me.
On Wed, 2003-07-30 at 15:35, Bhattacharyya, Somraj
wrote:> Thanks for the reply. I will do it tomorrow morning in lab. Just a small
> clarification,
>
> rsync -ae ssh /home/httpd/htdocs/ replica:/home/httpd/htdocs/ in this
> command I hope "replica:" stands for the name of the slave
server. The name
> of my slave server is web2. So for my case the command should be
>
> rsync -ae ssh /home/httpd/htdocs/ web2:/home/httpd/htdocs/
>
yes.> Also I have made the alis configuration in the hosts file of my master
> server.
I don't know about that.> Please confirm this small thing.
>
> Thanks a lot.
> Somraj
>
>
> -----Original Message-----
> From: fairchild@corona.physics.ucla.edu
> To: rsync@lists.samba.org
> Sent: 30/07/03 17:07
> Subject: RE: Rsync configuration
>
> > Very important I am just stucked at this point.
> >
> > Hi
> >
> > I started working on rsync and RH8 linux recently. I have loaded the
> > rsync-2.5.5-1.i386.rpm. The list of rsync help paramets are coming on
> > screen,when I am typing rsync -h.
> >
> > But I coulnot find any rsync.conf file in my linux box. Could anyone
> > please tell me how to confgure and launch rsync for the following
> > purpose.
> >
> > The scenario is:
> > I have two apache servers running on RH Linux-8 boxes. One of my web
> > server is the master server(146.176.165.2) and I want to make the
> other
> > one as a replica(146.176.165.1) of the master one. So, I need to
> > replicate the web pages automatically and I want to do it by rsync.
> > Right now the servers are within a same network but I have a plan to
> > place them into two different networks in future.
>
> The way I would do this is:
> on the master,
> rsync -ae ssh /home/httpd/htdocs/ replica:/home/httpd/htdocs/
> cron this command to run as often as you want. To use ssh as a tunnel
> set
> up an ssh key (man ssh-keygen, man ssh.) You might want to consider
> using
> forced command on the replica (put command="rsync server
blabblabla" in
> the begining of the key line.) you can see what the command would be by
> dding verbosity, -v, flags to the above command.
> There are other ways to do it, but that is how I would do it. If you use
> ssh it won't matter so as if the network is not secure.
> > Eagerly waiting to hear ..
> > Thanks and regards
> > Somraj
> > --
> > To unsubscribe or change options:
> > http://lists.samba.org/mailman/listinfo/rsync
> > Before posting, read:
> http://www.catb.org/~esr/faqs/smart-questions.html
> >