postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Backup /var/spool/postfix & restoring

Re: Backup /var/spool/postfix & restoring

From: sunhux G <sunhux_at_nospam>
Date: Fri Oct 22 2010 - 16:39:59 GMT
To: postfix-users@postfix.org

>the queue starts empty (you are not adding old queue files to a
>queue that has received new queue files) you can restore, and
>then start Postfix

We do backup once in the night but thing is the mails keep coming in
round the clock. So what we can get from the backup tape is not
usable because postfix is not shut down when backup is taken.

So what would be a good backup strategy for a mail/postfix server
that runs round the clock? If a backup is taken only once per
night, it sounds like it's not a useable backup.

Suppose I don't want to lose any mails (or lose minimum mails)
when disk got corrupted/crashed (even mirror disks failed us in
our environment), is there sort of hot backups for postfix queues?

On Sat, Oct 23, 2010 at 12:19 AM, Victor Duchovni <
Victor.Duchovni@morganstanley.com> wrote:

> On Fri, Oct 22, 2010 at 10:29:27PM +0800, sunhux G wrote:
>
> > >You should not directly manipulate the postfix queue directories.
> > >man postsuper for the correct invocation of the -d option.
> >
> > If there's a hard disk crash or corruption of /var/spool/postfix/...,
> > can we restore from tapes the /var partition & is there any
> > special recovery of postfix needed?
>
> So long as Postfix is not running when the queue is restored, and the
> queue starts empty (you are not adding old queue files to a queue
> that has received new queue files) you can restore, and then start
> Postfix.
>
> --
> Viktor.
>