Re: [suse-sles-e] email backup

From: Mike Petersen (mgpeter_at_pcc-services.com)
Date: Thu Oct 06 2005 - 00:07:31 CEST


From: Mike Petersen <mgpeter@pcc-services.com>
Date: Wed, 05 Oct 2005 17:07:31 -0500
Message-Id: <1128550051.5887.27.camel@inspiron2650.site>
Subject: Re: [suse-sles-e] email backup

To backup Cyrus you should backup the following directories

/var/lib/imap
/var/spool/imap

as well you should run the following command as root prior to backup

su - cyrus -c "ctl_mboxlist -d" > /var/lib/imap/mboxlist.txt

this command will create a text file containing a list of all your
user's mailboxes, this is done in case you are restoring to a different
version of cyrus/bdb so you can read it back into cyrus. If you do not
have a list of the mailboxes, cyrus will only restore whatever is in
your inbox and nothing else.

I was able to do the backups as the machine was running cyrus, but YMMV
depending upon your traffic.

Hope this helps,

Mike Petersen
mgpeter@pcc-services.com

On Thu, 2005-09-22 at 21:40 +0200, Carlos Lorenzo Matés wrote:
> Hi Mike.
>
> > >
> > > If i understand, the mail files can be backed up at anytime witout
> > > stoping cyrus services, we can backup /var/spool/imap/user and all mail
> > > will be backed up.
> >
> > All email is stored as a text file, including the directory structure
> > that the user's create. Along with the email, there are binary files
> > that cyrus creates, although I believe you can delete them and they will
> > be recreated at startup, but not sure yet. (Will try it this weekend and
> > let you know).
>
> is necesary any command to regenrate the mail index?
>
> > > is any way to merge the existing data with the data contained in the ldif
> > > file?
> > >
> > > for example if someone deletes some records and doesn't know exactly what
> > > records, but knows the date, can we restore only the missed records?
> >
> > Sure, the ldif file is a simple text file - for example, you could
> > backup the current database and compare it to a backup with the diff
> > command. Otherwise simply search through the backup LDIF to find the
> > info you need, create a new text file with the relevant data and simply
> > slapadd it back in.
> >
> > >> FWIW - I have had way too many bad experiences with Exchange, why on
> > >> earth would anyone design an email system that stores everyone's emails
> > >> into a single database file ??
> > >
> > > it's a nightmare we have daily issues, we expect to replace it with the
> > > SLES box in the next month.
> > >
> > > Many Thanks.
> >
> > I can almost sleep soundly at night without having to worry about any
> > Windows Servers - I will replace the final Windows Server that I have to
> > deal with within a month (waiting on a new Dell PowerEdge server)!
> >
> > Mike Petersen
> > mgpeter@pcc-services.com
>
>
> Many Thanks and greetings
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
For additional commands, e-mail: suse-sles-e-help@suse.com



This archive was generated by hypermail 2.1.7 : Thu Oct 06 2005 - 00:07:40 CEST