Forum Discussion

kkhoo's avatar
kkhoo
Level 5
7 years ago
Solved

how to trigger a script from NBU admin console

HI,

We have a written a script in the client that does the following:

- search for 60 days old files; copy to backup directory; trigger backup

Other than i schedule this the client's cron; can i call the same script in NBU?

Backup Selection > script.sh

Please advise, thanks.

 

6 Replies

  • You can execute scripts on the client by calling them with bpstart_notify. When a backup runs it will look for the bpstart_notify file. If it finds it, it will execute it before the backup runs.

    What you could do is setup the folder that you'd like to backup as the backup selection, and use bpstart_notify to copy the files you want into this folder before backing it up.

    Below are windows/unix style instructions.

    https://www.veritas.com/support/en_US/doc/24437881-126559615-0/v41507330-126559615

    https://www.veritas.com/support/en_US/doc/24437881-126559615-0/v41507383-126559615

    • kkhoo's avatar
      kkhoo
      Level 5

      Hi there,

      Thanks for reply. I have no access to the client. We wanted to standardize in a way that the script is being triggered in NBU.This way we can monitor which backup has failed.

      I remember in older version, the script can be triggered under backup selection. Please advise, thanks.

      • Systems_Team's avatar
        Systems_Team
        Level 6

        Hi Kkhoo,

        There are quite a few good options for you to choose from the suggestions that have been posted so far.

        One other option would be to keeps the steps "search for 60 days old files; copy to backup directory" as a CRON triggered script on the client.  Just Make sure the files are copied to the backup directory prior to the backup kicking off. 

        Then trigger the backup normally via a schedule in your NetBackup policy, with your backup selection being your "backup directory".  You will at least have visibilty of the actual backup job in NetBackup, you just won't have visibility of the first two steps that run on the client.

        Hope this helps,

        Steve