Netbackup runnning backup jobs sequentially

Posted on 2011-10-12
Last Modified: 2012-05-12

I need some help with a Netbackup related problem:

I have an application that needs to be shut down in order to back it up. The application writes data to the file system and to a SQL Server database. I have written and tested an application shutdown script and application startup script. I want to:

1. Shut down the application
2. Perform a file system backup
3. Perform a SQL Server backup
4. Start up the application

I can set the scripts to run at the start and end of the backup job in netbackup but as you can't select SQL server and file system data in the same backup scope I need to run two jobs. Netbackup is version 7.0

Is there any way to run the two backup jobs seqentially so that they run one after the other? I can't find a way to do this.

Assistance appreciated - Jon.
Question by:Type45
    LVL 3

    Accepted Solution


    there is a solution, but you can't setup this from the gui.

    What you need to do is create a script that will do the actions that you describe, all in the same script, including starting the backup job from command line.

    With the bpbackup command, you're able to launch a backup from command line, as you would from the gui.
    If you script it to wait for the returncode, you can start all jobs sequentially from command line.

         bpbackup - Back up files to the NetBackup server.

         /usr/openv/netbackup/bin/bpbackup [-p policy] [-s  schedule]
              [-S     master_server     [,master_server,...]]     [-t
              policy_type] [-L progress_log  [-en]]  [-w  [hh:mm:ss]]
              [-help] [-k "keyword_phrase"] -f listfile | filenames

         /usr/openv/netbackup/bin/bpbackup -i [-p policy]  [-h  host-
              name]      [-s      schedule]     [-S     master_server
              [,master_server,...]] [-t policy_type] [-L progress_log
              [-en]] [-w [hh:mm:ss]] [-k "keyword_phrase"]

    for more info check the command reference guide:

    Author Closing Comment

    Thanks, sorry either didn't get or missed the email saying you'd responded. This looks like an excellent solution although scheduling from the command line needs some careful consideration when other backups are scheduled from within Netbackup.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Problem We are doing a daily copy of data in file system in Linux manually and I want to automate the same . We need many features in this automation:    1. We want to be able to exit in case of errors    2. We want the copy to happen via …
    By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
    This tutorial will give a short introduction and overview of Backup Exec 2014 and the additional features that have been added over its predecessor Backup Exec 2012. As with Backup Exec 2012, the Backup Exec button in the upper left corner. From her…
    This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now