efficiently synchronizing source and destination

Kevin Karwaski kkarwaski at gmail.com
Tue Nov 21 19:39:15 GMT 2006


yeah... that's what i was afraid of... it's too bad rsync doesn't have
the ability to sync two filesystems with different files resulting in
two identical devices...

thanks for the input...

-kevin

On 11/15/06, Christian Hack <christianh at edmi.com.au> wrote:
>
>
> > -----Original Message-----
> > From: Christian Hack [mailto:christianh at edmi.com.au]
> > Sent: Thursday, 16 November 2006 11:33 AM
> > To: 'rsync at lists.samba.org'
> > Subject: RE: efficiently synchronizing source and destination
> >
> >
> > > I have two fat32 formatted external drives (on the localhost) that
> > > need sync'ing. Each of the drives contain different files. The end
> > > result I'm looking for is two identical disks.
> > >
> > > My question is whether or not I can encapsulate this
> > process in a one
> > > liner with rsync or if i need to make two independent calls to rsync
> > > as follows:
> > >
> > > rsync -av /path/to/source /path/to/dest && rsync -av /path/to/dest
> > > /path/to/source
> > >
> > > In the situation above, the dest has files that do not exist on the
> > > source, hence the second call to rsync...
> > >
> >
> > This will only work if the files on each disk are not common.
> > Otherwise if you update a file on dest it will get
> > overwritten by the first sync from source.
> >
>
> Oops. Missed that in the first para....
>
> Yes you'll need two syncs.
>
>
> --
> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>


-- 
Kevin Karwaski
kkarwaski<at>gmail.com


More information about the rsync mailing list