[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sequence number mismatch



On Thu, Jun 02, 2011 at 08:54:16AM -0700, Colin Percival wrote:
> On 06/02/11 08:47, Michael Stevens wrote:
> > On Thu, Jun 02, 2011 at 07:34:46AM -0700, Colin Percival wrote:
> >> On 06/02/11 02:44, Michael Stevens wrote:
> >>> On Thu, Jun 02, 2011 at 09:55:58AM +0100, Michael Stevens wrote:
> >>>> root@ceres:~# ./backup.sh
> >>>> Directory /usr/local/tarsnap-cache created for "--cachedir /usr/local/tarsnap-cache"
> >>>> tarsnap: Sequence number mismatch: Run --fsck
> >>>> tarsnap: Error creating new archive
> >>>
> >>> Okay, that seems to be fixed after a fsck.
> > 
> > root@ceres:/home/mstevens# tarsnap --keyfile zazen-tarsnap.key -d -f
> > home-2009-12-03
> > tarsnap: Sequence number mismatch: Run --fsck
> > tarsnap: Error deleting archive
> 
> Which key file is your ./backup.sh using?  Is it zazen-tarsnap.key?

They're different keys.

The problem seems to be triggered by use of zazen-tarsnap.key.

backup.sh is really:

exec /usr/local/bin/tarsnap -P  -c --exclude /usr/local/tarsnap-cache -f
ceres-home-$(date +%F) /home /var/mail /etc /usr

It's using a separate ceres-tarsnap.key.

> Which cache directory is your 'tarsnap --keyfile zazen-tarsnap.key' using?  Is
> it /usr/local/tarsnap-cache?

As far as I know everything is using /usr/local/tarsnap-cache.

Michael