UNSOLVED

Zeppl

updated

10 years ago

Z

Zeppl

3 Posts

0

4529

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?

  • 2507

    0

    Posted 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

  • Zeppl

    3 Posts

    2507

    0

    Posted 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

  • ble1

    6 Operator

    14354 Posts

    56186 Points

    2507

    0

    Posted March 6th, 2017 06:00

    In recent 9 versions, savepnpc is replaced by nsrpost.

  • wlee

    263 Posts

    2507

    1

    Posted 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."