Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identify a db2 backup file type

Status
Not open for further replies.

martynh

Technical User
Oct 17, 2001
73
GB
We create 2 types of full backup: online with logs included and (once a week) offline. The backup file names have the same format but, of course, if you want to restore from them, the commands are slightly different. I'm trying to script automatic restores from these files onto a different server. Is there anyway I can ask DB2 what sort of backup is in one of these files?

DB2 8.2.4, RHEL 3 on Compaq DL380 G3

Thanks

Martyn Hodgson
Integrated International Payroll Ltd.
 
Martyn,

not got db2 in front of me today. Have you tried commands such as

db2 list history backup

Cheers
Greg
 
The list history command is fine so long as you have the source DB2 instance available. In my scenario I'm trying to set up something that would work if the source DB server had died and all I had was the backup file.

In fact I have managed to answer my own question. The command db2ckbkp, when given a backup file name, gives you everything you could ever want to know about the backup. The -h option was enough for me, but there's loads more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top