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.
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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.