[Dovecot] backup strategie - any ideas and tips
Hi,
we run a dovecot mail-server with about 50GB of e-mail and at the moment users are responsebil for macking ther own backup of e-mails.
But I'd like to have also a backup of the mail, beckause not all users do ther backups ...
We use mbox-format-mailboxes.
Any ideas how to backup the mailboxes without stopping the server, doing a backup to disk/tape/...?
Thanks for any ideas ant tips!
Regards
Götz Reinicke
Götz Reinicke IT Koordinator - IT OfficeNet
Tel. +49 (0) 7141 - 969 420 Fax +49 (0) 7141 - 969 55 420 goetz.reinicke@filmakademie.de
Filmakademie Baden-Württemberg Mathildenstr. 20 71638 Ludwigsburg www.filmakademie.de
Götz Reinicke пишет:
Hi,
we run a dovecot mail-server with about 50GB of e-mail and at the moment users are responsebil for macking ther own backup of e-mails.
But I'd like to have also a backup of the mail, beckause not all users do ther backups ...
We use mbox-format-mailboxes.
Any ideas how to backup the mailboxes without stopping the server, doing a backup to disk/tape/...?
Thanks for any ideas ant tips!
Regards
Götz Reinicke I think, it's not bad idea doing backup while delivering, i.e. create backup mailboxes for each user and tune MTA to deliver "blind carbon copy" to such shadow mailbox (in postfix loook at http://www.postfix.org/postconf.5.html#recipient_bcc_maps parameter).
-- С уважением, Савчук Тарас "ЭЛАНТЕК" +7 (495) 589 68 81 +7 (926) 575 22 11 http://www.elantech.ru
taras@elantech.ru wrote:
I think, it's not bad idea doing backup while delivering, i.e. create backup mailboxes for each user and tune MTA to deliver "blind carbon copy" to such shadow mailbox (in postfix loook at http://www.postfix.org/postconf.5.html#recipient_bcc_maps parameter).
You'll lose all the changes that users had made (moving messages from one mailbox to another, for example).
Cheers, -jkt
-- cd /local/pub && more beer > /dev/mouth
forgive my nievness, and also for top posting - as Ive lost the OP - seeing as someones raised the issue of backup ideas and tips - is there anything fundamentally wrong with rsync to another (either local or remote location)?
thx glenn On Tuesday 02 May 2006 19:24, Jan Kundrát wrote:
taras@elantech.ru wrote:
I think, it's not bad idea doing backup while delivering, i.e. create backup mailboxes for each user and tune MTA to deliver "blind carbon copy" to such shadow mailbox (in postfix loook at http://www.postfix.org/postconf.5.html#recipient_bcc_maps parameter).
You'll lose all the changes that users had made (moving messages from one mailbox to another, for example).
Cheers, -jkt
forgive my nievness, and also for top posting - as Ive lost the OP - seeing as someones raised the issue of backup ideas and tips - is there anything fundamentally wrong with rsync to another (either local or remote location)?
thx glenn On Tuesday 02 May 2006 19:24, Jan Kundrát wrote:
taras@elantech.ru wrote:
I think, it's not bad idea doing backup while delivering, i.e. create backup mailboxes for each user and tune MTA to deliver "blind carbon copy" to such shadow mailbox (in postfix loook at http://www.postfix.org/postconf.5.html#recipient_bcc_maps parameter).
You'll lose all the changes that users had made (moving messages from one mailbox to another, for example).
Cheers, -jkt
Glenn Davy wrote:
forgive my nievness, and also for top posting - as Ive lost the OP - seeing as someones raised the issue of backup ideas and tips - is there anything fundamentally wrong with rsync to another (either local or remote location)?
Well, there might be one issue, IMHO - what happens if you're backing up a huge mailbox (say over 1GB) and a message from the beginning gets deleted)? I'd say that you'll have to employ the same locking scheme as you've configured Dovecot to do and then you should be pretty safe. I'm not sure about the performance (and that's the whole mailbox-maildir flame)...
I'm not a backup guru, though :)
Cheers, -jkt
-- cd /local/pub && more beer > /dev/mouth
Glenn Davy wrote:
forgive my nievness, and also for top posting - as Ive lost the OP - seeing as someones raised the issue of backup ideas and tips - is there anything fundamentally wrong with rsync to another (either local or remote location)?
Well, there might be one issue, IMHO - what happens if you're backing up a huge mailbox (say over 1GB) fortunately my clients data is still all quite small - the entire set wouldnt be half that yet.. and a message from the beginning gets deleted)? ... but yes what if. I was wondering about that. I took mine offline for the initial rsync (which runs accross the pacific), and now only changes are backed up - which is quite quick - I guess its good luck that this hasnt happened yet, only a matter of time though I'd say that you'll have to employ the same locking scheme as you've configured Dovecot to do and then you should be pretty safe.
On Tuesday 02 May 2006 20:02, Jan Kundrát wrote: thanks - I'll look into this - I havent given it much thought
I'm not sure about the performance (and that's the whole mailbox-maildir flame)...
I'm not a backup guru, though :)
Cheers, -jkt
Jan Kundrát wrote:
Glenn Davy wrote:
forgive my nievness, and also for top posting - as Ive lost the OP - seeing as someones raised the issue of backup ideas and tips - is there anything fundamentally wrong with rsync to another (either local or remote location)?
Well, there might be one issue, IMHO - what happens if you're backing up a huge mailbox (say over 1GB) and a message from the beginning gets deleted)?
This is why I love LVM - snapshots...
--
Best regards,
Charles
On Tue, 2006-05-02 at 05:28, Charles Marcus wrote:
forgive my nievness, and also for top posting - as Ive lost the OP - seeing as someones raised the issue of backup ideas and tips - is there anything fundamentally wrong with rsync to another (either local or remote location)?
Well, there might be one issue, IMHO - what happens if you're backing up a huge mailbox (say over 1GB) and a message from the beginning gets deleted)?
This is why I love LVM - snapshots...
Snapshots don't solve the problem of inconsistent files, they just shrink the timing window when the copy appears - and if you are using LVM2 , snapshots only recently started working. Then you have the problem of restoring an old message without clobbering current ones if they are all in the same file. Maildir format makes most of these issues go away and you can use something simple like backuppc (http://backuppc.sourceforge.net/) to manage online rsync-based backups.
-- Les Mikesell lesmikesell@gmail.com
participants (7)
-
Charles Marcus
-
Glenn Davy
-
Glenn Davy
-
Götz Reinicke
-
Jan Kundrát
-
Les Mikesell
-
taras@elantech.ru