Justin Kreger
2003-Jun-09 16:14 UTC
need assistance with rsync keeping two live servers synced.
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? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20030609/04e908d3/attachment.bin
jw schultz
2003-Jun-09 16:27 UTC
need assistance with rsync keeping two live servers synced.
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@pegasys.ws Remember Cernan and Schmitt
Wayne Davison
2003-Jun-10 02:52 UTC
need assistance with rsync keeping two live servers synced.
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.Besides jw's suggestion of unison (which is the right tool for the job, not rsync), you should also consider a distributed file system, such as OpenAFS or even SFS (the self-certifying file system). ..wayne..