Views

How do I add pre and post processing on NT?

This Wiki is brought to you by Backup Central, where you can find the Mr. Backup Blog, Forums, and a mailing list for each forum!

Backup FAQs Service Providers Backup Software Backup Hardware Backup Book Wiki Free Stuff Miscellaneous


A. From K. Scott Rowe (24 Mar 2000): You must add savepnpc into the backup command field of the client. This will create a GroupName>.res file in the directory /nsr/res. You can edit this file to fulfill your needs. Below is a GroupName>.res file we are using:

type: savepnpc;
precmd: "c:\\win32app\\nsr\\res\pre.bat";
pstcmd: "c:\\win32app\\nsr\\res\pst.bat";

This file is used on a NT-server, notice \\ in the command line. In the pre/pst.bat files the following is necessary to run the commands succesfully: All variables which come with the 'set' command.

cmd /c "net stop service name"
echo + > filename
del filename

The last 2 lines are needed to give the bat file a 'exit 0' status. If NO 'exit 0' status comes from the batfile then NO backup will be made. This is due to the fact that some NT-services finish succesfully with a 'exit 1' status and NetWorker checks for 'exit 0'.

I need information on Windows Registry, & ACL