1753765 Members
6098 Online
108799 Solutions
New Discussion юеВ

Re: Verify Backup

 
Jose Gallegos_1
Occasional Contributor

Verify Backup

What is the best way to verify a fbackup's integrity. Is there a verify routine
that can be run?
5 REPLIES 5
Jason Luginbuhl_1
Frequent Advisor

Re: Verify Backup

Jose,

Unfortunately there is no real way to know for sure that a backup is good until
you attempt to restore it. Many customers choose to verify their backups are
good by restoring a random file from the tape from their periodic backups. This
is a pretty good indicator that the backup is good. I have seen that other
customers choose to do an frecover -I to pull the index from the tape. This
will check that the index is intact and does again point to a good backup, but
it is not a guarantee that all of the data is good.
Vitek Pepas_1
Occasional Advisor

Re: Verify Backup

Try 'frecover -xN'. It reads the backup without restoring data - see frecover
man page for details.
Paul Winchcombe_1
Occasional Advisor

Re: Verify Backup

This is a procedure I use to use at HP-UX 9.04

I use to create a file in root called /zzz. As fbackup does backups in
alphbetical order /zzz should be the last file on backup.

My verify routine was then to recover this file.


Regards

Paul
Jason Luginbuhl_1
Frequent Advisor

Re: Verify Backup

Good suggestions from Paul and Vitek. Vitek pointed out an option that I was
unaware of. He pointed out the -N option of frecover for verifying a backup.
Here is the documentation from the manpage:

-N
(no recovery) Prevent frecover from actually recovering
any files onto disk, but read the backup as if it was,
in fact, recovering the data from the backup, producing
the same output that it would on a normal recovery.
This option is useful for verifying backup media contents in terms of validity
(block checksum errors
are reported), and contents (a listing of files can be
produced by using the -N and -v options together).
Note that the listing of files produced with the -N and
-v options requires the reading of the entire backup,
but is therefore a more accurate reflection of the
backup's contents than the index stored at the
beginning of the backup (which was created at the start
of the backup session, and is not changed during the
course of the backup).
Robert Gamble_3
Regular Advisor

Re: Verify Backup

That is the same procedure I use!
I have been using /var/yp/zxz on all my systems as my 'reference file' to do
random audits of my backups.

My procedure displays the Volume Header to screen, then cp the Index to an
audit directory then restores the file at the end of the volume and does a
checksum against the original 'zxz'. It is the best way to verify a good backup
that our team could think of using fbackup/frecover.