dbTalk Databases Forums  

Windows Batch file for backup and verify backup-image

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Windows Batch file for backup and verify backup-image in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Hopfield
 
Posts: n/a

Default Windows Batch file for backup and verify backup-image - 08-23-2010 , 10:12 AM






Hi ,

How db2 return codes works into a windows batch file?
I try to explain my needs: i want to write a batch file for
-make offline backup of db2 (version 8.2,9.5)
-check the backup image file with db2ckbkp utility
-copy the backup image on a network drive with a simple copy command

if an error occurred into any of these steps i want to send a message
or write something on the screen (or send an email with the problem to
a list of users)

my problem is that i'm unable to check the return code of every
command, it seems that errorlevel variable is not working.

ps: for me is ok also to use other script languages available on
windows, if this solve the problem.

can you help me?
JH

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.