Video Screencast Help

presched script

Created: 22 Mar 2013 • Updated: 25 Apr 2013 | 3 comments
This issue has been solved. See solution.

Hello,

We have a request to use a perl script that shoud be executed before the normal file-level backup beings on a windows server which is the best approach to accomplish this task?

I’m thinking to  just create a policy for this script and schedule it before the backup begins

In the client tab section will be the name of the windows client (leafhorse.xx.xx.xx

Would that be the correct or is there a better way?

 

This is a windows server

 

Operating Systems:

Comments 3 CommentsJump to latest comment

revaroo's picture

This is what you are looking for:

http://www.symantec.com/business/support/index?pag...

 

You add the bpstart notify on the client and when a backup runs it will fire the bpstart_notify script BEFORE the actual data is backed up.

It can be configured for all backups to the client or per policy.

SOLUTION
AAlmroth's picture

If it is to run on the client, you would just create a pre-backup script in the \NetBackup\bin folder. If it is in PERL, you would have to wrap it with a .BAT file.

Google on bpstart_notify, and you will find more information on how to use it. You can use it for specific policies and schedules as well.

/A

Stumpr2's picture

Best way? It depends on the function and the importance of the script.

Do you need any wait time from when the script completes to when the backup starts?

Do you need to correct issues from errors or events from the script?

The normal NetBackup policy schedule initiates the backup using bpstart_notify to run the script and a subsequent backup

or.

sometimes a local or 3rd party scheduler initiates the script and also initiates a user directed backups. DBA's like to use this method.

Both ways have been proven to work for many years.

VERITAS ain't it the truth?