Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prebackup

Status
Not open for further replies.

Balki

IS-IT--Management
Nov 24, 2001
4
US
I have a backup running via a savegroup. I would like the backup to start only after a condition like job is done, process is no longer active.
I know I can put time dependencies by udsing Start Time.

Can somebody help me.

Thanks,
-Balki
 
What platform?

If unix, for the client definition, tab "remote", change your backup command to "savepnpc".

The first time you run a group with that client definition, it will create a file named /nsr/res/groupname.res

Edit that groupname.res file and point the pre command to a script that does what you want to do.

Networker can be picky about the format of this file, I think the key is to make sure there is a blank 5th line.

Any script you call via either pre or post will be run without an environment so your script needs to pull in /etc/environment or whatever other files out of /etc that are used for that purpose.
 
Hi :

It is Sun Solaris 8.

If I have 'if' condition for a process to finish, will this work.
And what do I need to in order to abandon the backup as the process did finish within the specfied time.

Thanks,
-Balki
 
Couldn't you stop th egroup running automatically and alter your script/program that must run first to call
savegrp -G groupname
after it completes?
The snag with savepnpc is that it will either start after the job finishes OR hits the timeout.
 

If you want to run savegroup after "complex" conditions, you have to use an external scheduler; the savegroup command is then called exactly when you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top