Jump to content

Retrospect Client not running retroeventhandler.bat


Recommended Posts

I performed my first ever client backup yesterday, and the script never ran on the client.

 

the file is C:\Program Files\Retrospect\Retrospect Client\retroeventhandler.bat

 

I know it's a valid batch file because not only have I tested running it, it is virtually the same as the one on the server, which is functioning correctly.

Link to comment
Share on other sites

StartApp would be for starting the Retrospect application not for starting a backup. The Sample batch file clearly says this.

 

REM Sample Retrospect Event Handler
REM 
REM     The Retrospect application will call this batch file with the first
REM argument as the subroutine name (e.g. "EndSource").
REM     Procedures supported by Retrospect 5.1:
REM StartApp -- Retrospect has been launched
REM EndApp -- Retrospect is quiting
REM StartBackupServer - The backup server is starting
REM StopBackupServer - The backup server is stopping
REM StartScript - A script is begining
REM EndScript - A script is stopping
REM StartSource - A volume is about to be backed up
REM EndSource - A volume has been backed up

 

The client probably will only work with:

 

REM StartSource - A volume is about to be backed up

REM EndSource - A volume has been backed up

 

Edited by Guest
Link to comment
Share on other sites

OK. I will see what happens tonight.

 

I am using the following batch file, which should at the very least make an entry in the log file

 

@echo off
if not %_tccver==_tccver goto tccstarthere
"C:\Program Files\JPSoft\TCMD9\tcc.exe" /c %0 %*
exit /b
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: JP Software RetroEventHandler client batch file         ::
:: Be sure to adjust the above command line to your system ::
::   return code 0 == no error                             ::
::               1 == invalid procedure                    ::
::               2 == invalid number of parameters         ::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:tccstarthere
setlocal
echo %_date %_time - %* >>C:\RetrospectEventHandlerLog.txt
if %# LT 2 quit 2
switch %1
case StartSource
 if %# != 6 quit 2
 set scriptName=%2
 set volName=%3
 set sourcePath=%4 
 set clientName=%5 
 set interventionFile=%6

case EndSource
 if %# != 18 quit 2
 set scriptName=%2
 set sourceName=%3
 set sourcePath=%4
 set clientName=%5
 set kbBackedUp=%6
 set numFiles=%7
 set duration=%8
 set sourceStart=%9
 set sourceEnd=%10
 set scriptStart=%11
 set backupSet=%12
 set backupAction=%13
 set parentVol=%14
 set numErrs=%15
 set fatalErrCode=%16
 set fatalErrMsg=%17
 set lastVol=%18

default
 quit 1

endswitch
quit 0

 

Eh, don't know why my code isn't monospaced.

There is a free version of JP Software's command processor you can test this with at their website (download TCC LE and modify the command line above)

Edited by Guest
code tags are funky
Link to comment
Share on other sites

I don't think the client will accept most of those commands. I believe the script/volume start/stop might be the only commands it will understand.

 

The event handler on the client is designed to trigger things like the closing of a program before a script. The client will probably not understand things like number of files copied, backup action, fatal errors, et.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...