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