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

how to handle "cached trailer is corrupt"?



I have been using tarsnap for a few months with a nightly backup.
Recently I had the following in the nightly log:

tarsnap: Removing leading '/' from member names
tarsnap: Warning: cached trailer is corrupt
tarsnap: Error writing cached archive entry

Shortly after this, I realized that a few blocks on the 1.5TB disk had
gone bad.  I took that disk offline and ran the manufacturer's
diagnostics, which spent five hours doing a low level scan and block
replacement.  It gave the disk a "good, errors corrected" report, so it
is back in service.

But I am unclear how to clean up tarsnap's metadata to start archiving
again.

I did a "tarsnap --fsck" and that completes without errors after a half
hour or so, but I get the same error when I try to archive.  "--fsck"
doesn't emit the suggestion to run "tarsnap --fsck-prune" mentioned in
the man page.  Should I run that anyway?  Maybe there should be a
section of the man page that lists the possible error messages and what
action to take?


Cheers,

Lester