Re: "symmetric" mirroring (was "testing")
On Thursday, April 25, 2002 07:34:47 PM -0500 Rich Winkel <[EMAIL PROTECTED]> wrote: +-- | Sorry for the junk mail, it seems my last post was lost in the ether, | despite being successfully delivered to lists.samba.org (!) | Very frustrating, since I didn't keep a copy of it. | | My question was regarding what might be called symmetric mirroring, | where two sets of identical files, both being simultaneously updated, | are periodically syncronized. | | Has anyone implemented this? I posted a script which I think | would work. If my original post doesn't show up I guess I'll have | to type it in again. At any rate, implementing it in rsync doesn't | seem like it would be too difficult. +-X8 This is basically what unison does, its main drawback at present is that it doesn't understand hard links, that and the fact that it is written in Objective CAML ;^). /Michael -- This space intentionally left non-blank. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: "symmetric" mirroring (was "testing")
Hi Martin, I guess I need to be more specific. I have a unix user who has unix machines at home and at work. He wants local access to the same set of files whether he's at home or at work. > If each side updates a non-overlapping set of files you can do this > using --update to push only the newer file to each side. That much I figured out, but a problem arises when files are created or deleted. If a file on A has no counterpart on B, should it be deleted or copied over to B? My primitive idea is just to compare the date stamp (or inode modification time) of the file with the time of the last rsync, and either copy it over if it's newer, or delete it. Not very pretty, I know, but it would suffice for his purposes, and it would be easy to implement with an option like --symmetric=date_stamp_file where date_stamp_file is "touched" every time rsync runs. Ideally this would cause rsync to run in a "duplex" mode where files could be copied in either direction depending on which is newer. But that part sounds like a pretty major project. > If single files are updated on both sides you need a content-dependent > way of merging them, which is out of the scope of rsync. Have a look > at the Unison tool. Thanks for the tip, it sounds interesting. I'll check it out! Rich -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: "symmetric" mirroring (was "testing")
On 25 Apr 2002, Rich Winkel <[EMAIL PROTECTED]> wrote: > Sorry for the junk mail, it seems my last post was lost in the ether, > despite being successfully delivered to lists.samba.org (!) > Very frustrating, since I didn't keep a copy of it. > > My question was regarding what might be called symmetric mirroring, > where two sets of identical files, both being simultaneously updated, > are periodically syncronized. If each side updates a non-overlapping set of files you can do this using --update to push only the newer file to each side. If single files are updated on both sides you need a content-dependent way of merging them, which is out of the scope of rsync. Have a look at the Unison tool. -- Martin -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
"symmetric" mirroring (was "testing")
Sorry for the junk mail, it seems my last post was lost in the ether, despite being successfully delivered to lists.samba.org (!) Very frustrating, since I didn't keep a copy of it. My question was regarding what might be called symmetric mirroring, where two sets of identical files, both being simultaneously updated, are periodically syncronized. Has anyone implemented this? I posted a script which I think would work. If my original post doesn't show up I guess I'll have to type it in again. At any rate, implementing it in rsync doesn't seem like it would be too difficult. Thanks, Rich -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html