Discussion Locked

DOS commands in an .ncf file on Novell

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am running a Novell 5.0 server. Before and after my Arcserve backup I load and unload the SQL database. Each morning I must go in and delete the log file in order for the database to reload properly. I would like to automate this process in the .ncf file that loads and unloads the database but I cannot find any commands except for a login script. I tried the Toolbox utility to no avail. Any suggestions would be greatly appreciated.

3 replies

by rbgnr111

just create 2 ncf files, in them have one unload the nlm that runs the sql server, or if there is a command like stopsql.ncf tell it to run that, in the startup one for when the backup is done enter in the command used to start the sql server.
in arcserve if you go to the tools ( I think) there are options that allow you to specify a script to run before and after the backup runs, just enter the appropriate script in there and you should be able to do this.

by laltman

I already have these two ncf files performing in this manner. My problem is that I need to turn this .log file from a read only file and then delete it before or after I run these ncf files. I was hoping that I could do this from the .ncf file.

by estebandelatorre

You have to modify one of your .ncf files in order to perform the delete function

Rem Ncf delete starts
Load netbasic.nlm
shell.nlm
REM== once here, type like a DOS command box
cd \arcserve
attrib -r file.log
exit
REM == Exit the DOS way, back into nlm side
Load_databse.nlm
REM Finish!

Both .ncf that you have made, must be referenced into your backup job just to let arcserve unload the database prior to a backup , then rename and delete that log, and the load the database again.

Consider also buying an Arcserve agent to hot backup your database !!!

This discussion is closed to new replies.