Hi, I have 2 ftp servers with 3 identical users. I want server B to be updated of server A. Whatever changes mmade by users on server A should be made on server B say every 5 hours. Is rsync the right tool to use here? Can rsync be used such that only changed files are downloaded? Thanks a lot and bye. With warm regards, -Payal -- For GNU/Linux Success Stories and Articles visit: http://payal.staticky.com
On Wed, Sep 24, 2003 at 05:45:19AM +0000, Payal Rathod wrote:> Hi, > I have 2 ftp servers with 3 identical users. > I want server B to be updated of server A. > Whatever changes mmade by users on server A should be made on server B > say every 5 hours.As long as it is unidirectional, yes.> > Is rsync the right tool to use here? > Can rsync be used such that only changed files are downloaded?That's what rsync does. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt
On Tue, Sep 23, 2003 at 11:01:15PM -0700, jw schultz wrote:> On Wed, Sep 24, 2003 at 05:45:19AM +0000, Payal Rathod wrote: > > Hi, > > I have 2 ftp servers with 3 identical users. > > I want server B to be updated of server A. > > Whatever changes mmade by users on server A should be made on server B > > say every 5 hours. > > As long as it is unidirectional, yes.Thanks all for the mails. I will explain a little more what I intend to do. I want to mirror a server. But that mirroring should happen every 5-6 hours. There are few users on server A. If that server fails due to hardware failures I should be able to migrate the whole system to server B with least possible downtime and least data loss. I have never ever used rsync or scp or these tools in my life. Can someone give an example? One example was rsync -azvv, where do i tell it to get only new and modified files? I have skimmed the manpage of rsync. Just an afterthought, if I add users on A can they be duplicated on B automatically? What is the logic I should use here? Thanks a lot again and bye. With warm regards, -Payal -- "Visit GNU/Linux Success Stories" http://payal.staticky.com Guest-Book Section Updated.
On Wed, Sep 24, 2003 at 01:26:30PM +0530, Payal Rathod wrote:> On Tue, Sep 23, 2003 at 11:01:15PM -0700, jw schultz wrote: > > On Wed, Sep 24, 2003 at 05:45:19AM +0000, Payal Rathod wrote: > > > Hi, > > > I have 2 ftp servers with 3 identical users. > > > I want server B to be updated of server A. > > > Whatever changes mmade by users on server A should be made on server B > > > say every 5 hours. > > > > As long as it is unidirectional, yes. > > Thanks all for the mails. > I will explain a little more what I intend to do. I want to > mirror a server. But that mirroring should happen every 5-6 hours. > There are few users on server A. If that server fails due to hardware > failures I should be able to migrate the whole system to server B with > least possible downtime and least data loss. > I have never ever used rsync or scp or these tools in my life. Can > someone give an example? One example was rsync -azvv, where do i tell it > to get only new and modified files? I have skimmed the manpage of rsync.Read it instead. What you say you want is exactly what rsync does. There are examples in the manpage, in the list archives and elsewhere. Also read http://www.catb.org/~esr/faqs/smart-questions.html (as it says on the end of every message on-list) if you find these answers underwhelming. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt