Unsolved

This post is more than 5 years old

3 Posts

4493

February 27th, 2017 06:00

pre and post command

I am migrating all filesystem backup from Avamar to Networker.

We have a backup job with a pre and a post script on a unix client.

The pre script creates a list of files located in a special directory, the post script deletes those files only if the backup is successful.

With Avamar, a variable that contains the exit code of the backup command exists (AVAMAR_EXITCODE: KB 486410)

I cannot find something similar for Networker.

Any idea?

February 27th, 2017 08:00

Hi Louis,

I'm not sure whether "abort precmd with group: Yes;" would solve your problem (/nsr/res/ .res):

"This can be set to Yes or No. If set to Yes, the precmd will terminate if the particular savegrp is aborted. If it is set to No, the precmd will run to completion even after the abnormal exit of the savegrp session."

(quote from "Command Reference Guide")

Regards

Michael

3 Posts

February 27th, 2017 23:00

Hi Michael,

Thanks for your reply, I realized that I forgot to mention the version of Networker ( 9.1 ). I haven't found that in the command reference guide.

I think I'll have to write a script that uses Networker command to start the backup so I can get the return code and execute the post command.

Regards,

David

6 Operator

 • 

14.4K Posts

 • 

56.2K Points

March 6th, 2017 06:00

In recent 9 versions, savepnpc is replaced by nsrpost.

263 Posts

March 6th, 2017 07:00

You may want to look at the NetWorker Administrator Guide V9.1, page 414-419, "Creating a custom backup script."

No Events found!

Top