?
Solved

Netbackup runnning backup jobs sequentially

Posted on 2011-10-12
2
Medium Priority
?
1,248 Views
Last Modified: 2012-05-12
Hi,

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.
0
Comment
Question by:Type45
2 Comments
 
LVL 3

Accepted Solution

by:
Andy De Maesschalck earned 2000 total points
ID: 36957816
Hi,

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.



NAME
     bpbackup - Back up files to the NetBackup server.

SYNOPSIS
     /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: http://www.symantec.com/docs/DOC3684
0
 

Author Closing Comment

by:Type45
ID: 37058216
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.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

807 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