[Haifux] content directory mirroring

Biran, Yahav (Yahav) yahav.biran at gmail.com
Tue May 13 00:14:08 MSD 2008

I'm implementing a geo- redundancy solution for a web application.
The main task is to synchronize the content directory from the active site
to the stand-by site.

I tried to do it with rsync utility by setting rsync server that initiate an
rsync transfer.
My problem is that it keeps copy all the directories and sub directories
from scratch.
I wish to copy only the delta from last execution.

Im executing the following:
rsync --progress --stats --compress --recursive --rsh=ssh --partial \
dest_path user at src_ip:src_path

I was trying to calculate the delta files by executing in the source host:
rsync -avR user at dest_ip:'`find src_path -atime -${T2-T1}`' 
where T2 and T1 are the delta time duration.
But its not seem to be the right way.

Is anybody knows more elegant way to mirror two sites by transferring only
delta information? 

Yahav Biran
Multimedia Content Platforms
5 Nahum Het Street, 3rd floor
Topaz Building, Shaar Hacarmel
POB 15049
Haifa 31905, Israel
Email: biran at alcatel-lucent.com
Cell: +972 54 6616208
Phone: +972 4 8138020
Fax: +972 4 8138022

More information about the Haifux mailing list