[Top] [All Lists]

Re: [Nmh-workers] sync'ing an mh mailstore between two machines?

2008-05-21 12:15:35

Peter Maydell writes:

Just use rsync to copy the laptop's idea of the situation
onto the desktop again? (And vice-versa in the morning.)

Bleurgh! It's a difficult problem to solve. Probably the best
way is to use a DVCS for your mail store. They're generally
explicitly designed for offline operation and resyncing of
the repository when you get connectivity again.

At this point, I couldn't really recommend anything other
than git, because it's the only one I'm aware of that tracks
content rather than files. So even if you pack a folder and
your message numbers all change (whether it's on the server
or on the laptop), it should in theory do the right thing
when it comes to resyncing the two. You might need to knock
up a script to sanitize your sequences after the merge, but
I wouldn't have thought that would be too difficult.

I've never heard of anyone doing this with mail before, but
I can't see why it wouldn't work. Certainly an increasing
number of people swear by keeping things like /etc under
version control. Why not mail as well?


Nmh-workers mailing list

<Prev in Thread] Current Thread [Next in Thread>