1830060 Members
2225 Online
109998 Solutions
New Discussion

fbackup finish feedback

 
SOLVED
Go to solution
YMJ
Frequent Advisor

fbackup finish feedback

Hi All

I am investigating fbackup man and help files to see if I can setup fbackup to give feedback at the end of the backup process. this feedback will tell if the backup fail, pass, or have some warnings.

Any Help.

BEST REGARDS
5 REPLIES 5
Armin Feller
Honored Contributor
Solution

Re: fbackup finish feedback

Here the exit codes of fbackup:

0 upon normal completion.
1 if it is interrupted but allowed to save its state for possible restart.
2 fbackup(err message #)error conditions detected operation incomplete.
4 fbackup(err message #) warning conditions detected operation may have completed.

If you start fbackup like follows you get the exit code in /tmp/your_br_log

# fbackup -f /dev/rmt/0m -I / 2>&1 | tee /tmp/your_br_log
#echo $? //returns exit code of fbackup//

The standard logfile is /var/sam/log/br_log.

Hope that helps.

Regards ...
Armin
YMJ
Frequent Advisor

Re: fbackup finish feedback

Yup

THANK YOU VERY MUCH Armin
Dario_1
Trusted Contributor

Re: fbackup finish feedback

Hi!

I also have an frecover command that will restore a particular file located at the end of the file. By doing that, I am almost 100% positive I will be able to restore from that tape if I need to do it.

Regards,

DR
Bill Hassell
Honored Contributor

Re: fbackup finish feedback

As far as verifying that the tape is good, frecover already provides this functionality using the -N option. The man pages detail the process used by frecover. Restoring a single file is a pretty good method but due to fbackup/frecover's use of high speed searc marks, a great deal of tape data is skiped over without being read or verified.


Bill Hassell, sysadmin
Dario_1
Trusted Contributor

Re: fbackup finish feedback

Bill:

I agree 100% with you. I also use the -N option to verify the tape. It is only an extra step we do just to be able to sleep a little better...:-). You know how it goes.

Regards,

DR