efficiently synchronizing source and destination

Christian Hack christianh at edmi.com.au
Thu Nov 16 01:34:40 GMT 2006



> -----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.




More information about the rsync mailing list