From: mouss (no email)
Date: Thu Jul 14 2005 - 22:05:36 EDT
Michael Nguyen wrote:
> From: "Keith Matthews" <>
>
> [snip]
>
>
>>Have you looked at isync ?
>
>
> No I haven't, but it sounds really interesting. The thing is, it just
> doesn't seem like it'd be fast -- especially when comparing it to
> transferring a file directly from a filesystem.
>
> Maybe I'll try it over the weekend to see how it acts. I can imagine
> running it for each user and having the script take the mail server down to
> its knees or something. ;-)
>
backup is a generic word in this situation. what do you want to keep?
if it's the set of emails users have received, then do that at delivery
time (maildrop, procmail, .forward, ...).
if it's the exact state of mailboxes at any given time, then you indeed
need to copy/sync these mailboxes periodically. for this, either the
imap/pop server is modified to help (update the list) or not. since it
doesn't, one needs to act. so, you'll need to get the list of modified
files. here, there are two views:
- file view: get the list of modified files. this more or less amounts
to a find -*time call. you can hide this call with any utilities, but
it's there.
- fs view: this may be better, but it will hardly provie better
performances in the general case, and it adds unnecessary requirements.
if anybody has good algos to solve this problem better than brute foce,
then I'd be happy to see that. otherwise, let's keep doubt (and "in
doubt, use brute force").
|
|
|