I have a batch file backup script that exports the db file from a live live running Sybase database shortly before ShadowProtect images the drive, since Sybase is not VSS complatible. Here is my script:
CD Eaglesoft\Shared Files
DBBACKUP -d -t -c "eng=eaglesoft;uid=dba;pwd=sql" "D:\Online_Backup"
The trouble I am having is that sometimes "dbbackup" does not finish the export and hangs somewhere in the process. I need a script that will kill dbackup.exe if it does not complete in 5 minutes and restart the process. It would also be great if there was a way for script to put a "failed" entry in the windows event log when it fails.
Thanks very much!