[Samba] Synchronizing multiple samba servers

Charles Tryon charles.tryon at gmail.com
Mon Apr 30 12:50:46 MDT 2012


The "-u" option does skip "newer" files on the receiver, but it still
doesn't do the full bi-directional sync.  You could script to fire off a
second rsync to do the sync back again, but then you'd have to handle the
details of resolving (or at least saving) conflicts.  I think the point of
the "unison" program is that they've already thought through all those
weird combinations for you.


On Wed, Apr 25, 2012 at 4:13 AM, Janantha Marasinghe
<jananthadm at gmail.com>wrote:

> Is it possible to use rsync instead? i saw that there is a -u option.
>
> On Tue, Apr 24, 2012 at 6:36 PM, Janantha Marasinghe
> <janantha at janantha.net>wrote:
>
> >  Thanks a lot all . i will look into unison
> >
> >
> >
> > On 4/24/2012 1:43 PM, ciradhb.forward at laposte.net wrote:
> >
> > Hi,
> >
> > Maybe you could have a look to Unison which is a tool like rsync but in
> > bidirectionnal way .
> > http://www.cis.upenn.edu/~bcpierce/unison/index.html
> >
> > Henri
> >
> >
> >
> >
> >
> > > -----Message d'origine-----
> >
> > > De : samba-bounces at lists.samba.org [mailto:
> samba-bounces at lists.samba.org<samba-bounces at lists.samba.org>]
> > De la part de Janantha Marasinghe
> >
> > > Envoyé : mardi 24 avril 2012 07:20
> >
> > > À : samba at lists.samba.org
> >
> > > Objet : [Samba] Synchronizing multiple samba servers
> >
> > >
> >
> > > Hi.
> >
> > >
> >
> > > I have two servers located in two different time zones. I want to know
> > if there is a way to keep the shares synchronized.  Right now
> >
> > > what i thought is to run rsync from Server A to Server B . However the
> > issue is say Server B has a new version of the file in server A and
> >
> > > that should not be overwritten but should be copied back to server A.
> > How to go about this?
> >
> > >
> >
> > > Regards
> >
> > > Janantha
> >
> > > --
> >
> > > To unsubscribe from this list go to the following URL and read the
> >
> > > instructions:  https://lists.samba.org/mailman/options/samba
> >
> >
> >
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>



-- 
    Charles Tryon
_________________________________________________________________________
  “Risks are not to be evaluated in terms of the probability of success,
but in terms of the value of the goal.”
                - Ralph D. Winter


More information about the samba mailing list