home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: SysTools
/
SysTools.zip
/
backres.zip
/
RSTEXIT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-07-28
|
3KB
|
52 lines
/* Rexx */
/***************************************************************************/
/* Warp Server Backup/Restore Restore User Exit */
/* */
/* Copyright 1995 IBM Corp. */
/*-------------------------------------------------------------------------*/
/* Parameters passed: */
/* Complete = 0 at the start of a restore */
/* = 1 at the end of a restore */
/* */
/* RsMethod = Name of the Restore Method used in the restore */
/* */
/* BkpSet = Name of the Backup Set being restored from */
/* */
/***************************************************************************/
Parse arg Complete' <'RsMethod'> <'BkpSet'>'
/*-------------------------------------------------------------------------*/
/* Check the Complete flag to determine whether this is the beginning or */
/* end of a restore */
/*-------------------------------------------------------------------------*/
If Complete = 0 Then Do
/*----------------------------------------------------------------------*/
/* We're at the beginning of a restore, so now's the time to shut down */
/* any programs which require exclusive access to files. */
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* We can check the Restore Method (RsMethod) or Backup Set (BkpSet) to */
/* determine what applications need to be shut down. */
/*----------------------------------------------------------------------*/
Select
When RsMethod = "Database" Then Do
End
When RsMethod = "Server" Then Do
End
Otherwise
End /* endselect */
End /* enddo */
Else Do
/*----------------------------------------------------------------------*/
/* The restore has finished, so now's the time to start up the programs */
/* we shut down at the beginning of the restore */
/*----------------------------------------------------------------------*/
Select
When RsMethod = "Database" Then Do
End
When RsMethod = "Server" Then Do
End
Otherwise
End /* endselect */
End
return 0