Operating System - HP-UX
1833228 Members
2475 Online
110051 Solutions
New Discussion

Re: fbackup ending with warning how to make the good check on a script ?

 
kate32
Frequent Advisor

fbackup ending with warning how to make the good check on a script ?

Hi,

My title is a little complicated but here the situation. I am writing a script that is doing a fbackup during the nigth and before it shutdown the database then run the fbackup then I would like to check the status that the fbackup is fine but I always have warning (about socket: fbackup(1102): WARNING: unable to stat file /var/spool/sockets/pwgr/ etc... ) so my fbackup ending with warning and if I checked the $? it is different of 0
So how can I check that the fbackup was good and complete my script with some checks...
Or how can I avoid the warning errors (do I have to stop )

Just for information I have to use fbackup.

Thanks in advance for help.

Cheers
Kate
9 REPLIES 9
Reshma Malusare
Trusted Contributor

Re: fbackup ending with warning how to make the good check on a script ?

Hi Kate,
If you want to check whether your backup is completed or not then just check /var/adm/fabckup/dates.
This file will tell you last successfully completed backup.

Thanks & Regards
Reshma

Reshma Malusare
Trusted Contributor

Re: fbackup ending with warning how to make the good check on a script ?

Hi,
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !
Steven Schweda
Honored Contributor

Re: fbackup ending with warning how to make the good check on a script ?

If it's not really important to save the
files in "/var/spool/sockets/pwgr", there's
always the "-e" option to "fbackup" ("man
fbackup").

Or you could save the output from "fbackup",
and "grep" it for _significant_ messages.
kate32
Frequent Advisor

Re: fbackup ending with warning how to make the good check on a script ?

Oh thank you thank you for replying so quickly. I will have a look to the file /var/adm/fabckup/dates I didn't know this one... sorry I am not so experimented on hp-ux !

Cheers
LEt you know if I my script is working fine!
Thanks again.
Cheers
Kate
Reshma Malusare
Trusted Contributor

Re: fbackup ending with warning how to make the good check on a script ?

Its Ok kate,
Now if your problem is resolved then you can close the thread & award answers with points.
All the Best & have a nice day

Thanks& Regards
Reshma
kate32
Frequent Advisor

Re: fbackup ending with warning how to make the good check on a script ?

Hi,

no my problem is not yet solved. I didn/t find the file /var/adm/fabckup/dates on my system do we need to put a specific options to have these files ?
Cheers
Kate
Reshma Malusare
Trusted Contributor

Re: fbackup ending with warning how to make the good check on a script ?

check for /var/adm/fbackupfiles/dates
Steven Schweda
Honored Contributor

Re: fbackup ending with warning how to make the good check on a script ?

"man fbackup":

[...]
If fbackup is used for incremental backups, a database of past backups
must be kept. fbackup maintains this data in the text file
/var/adm/fbackupfiles/dates, by default. Note that the directory
/var/adm/fbackupfiles must be created prior to the first time fbackup
is used for incremental backups. The -d option can be used to specify
an alternate database file. The user can specify to update this file
when an fbackup session completes successfully. [...]

Whether this actually solves your problem is
another question.
Reshma Malusare
Trusted Contributor

Re: fbackup ending with warning how to make the good check on a script ?


Hi Kate,

If fbackup is used for incremental backups, a database of past backups must be kept. fbackup maintains this data in the text file /var/adm/fbackupfiles/dates, by default. Note that the directory /var/adm/fbackupfiles must be created prior to the first time fbackup is used for incremental backups. The -d option can be used to specify an alternate database file.
Please refer following document:
http://docs.hp.com/en/B2355-90681/fbackup.1M.html