need assistance with rsync keeping two live servers synced.
jw at pegasys.ws
Mon Jun 9 16:27:52 EST 2003
On Mon, Jun 09, 2003 at 02:12:56AM -0400, Justin Kreger wrote:
> I have a project that requires that I have two file servers physically
> separated, both of which need to be able to written to and synced using
> rsync. I'm not worried about rsync, I'm really worried about users
> deleting files, because if they delete files on one side, they would
> just get replicated back from the other side. I have thought about
> hacking up a script that logs into the remote box and blows away the
> same file on the other side, but most access to these boxes will be
> through samba. I guess I could run rsync with --delete, but I fear that
> would only work about half the time.... any suggestions/ideas?
Look into unison. Rsync is just a stateless one-way tool.
Unison is statefull so it can tell the difference between new
files and deleted files.
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync