Solved

BAckup Exec Pre and Post commands

Posted on 2009-05-11
7
1,857 Views
Last Modified: 2013-12-01
Backup Exec 12
Windows 2003 environment

I have a backup that runs nightly with about 20 servers in it.  I want to add another server to the backup but the application that is on it, EVault by Symantec requires that I run some pre and post commands that basically take the system offline during backup.  The problem is I want to just run these pre and post commands when it's that servers time to be backed up and not before and after the 8 hour backup window.  Is there anywhere do configure this?  I can only seem to find entire backup pre and post command options.

Thanks,


0
Comment
Question by:dlabbadia01
  • 4
  • 2
7 Comments
 
LVL 25

Expert Comment

by:Ron M
Comment Utility
To stop and start a service remotely, you can use a WMI vb script....  This can be launched by command line arguments. ( example... cmd /c cscript.exe C:\stopserviceonserver.vbs )

or.... you can use scheduled tasks in control panel, on the server, to stop the service locally before the backup is scheduled to begin.   ( NET STOP "{servicename}" )

0
 
LVL 38

Accepted Solution

by:
Hypercat (Deb) earned 125 total points
Comment Utility
You can only configure one set of pre and post commands per backup job.  So, if you want to include this server in a global backup job that handles all 20 of your servers, then the commands would be processed at the beginning of that job and the end of that job.  The only way to do what you want to do is to create a separate backup job for that server.  Depending on what backup media you're using, you could schedule the job to append to the same media, but you'd have to schedule the start time of the job carefully so that it doesn't try to start before the previous job is done.
An alternate method would be to include the new server in the same backup job. However, instead of using the BE pre and post backup commands, you could simply use the Windows task scheduler to run the two commands at appropriate times relative to when the backup job would be running on that particular server.
0
 

Author Comment

by:dlabbadia01
Comment Utility
yeah but thats not exact enough.  i was hoping to get a way of just running pre and post command on a single server within a backup containing multiple servers.  any other suggestins?  perhaps make the first  group of servers one backup with the append option and make this single server a second backup to the same tape?  thoughts on that would be appreciated.


0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 25

Expert Comment

by:Ron M
Comment Utility

stopserviceonserver.vbs
strComputer = "SERVERNAME" 

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") 

Set objShare = objWMIService.Get("Win32_Service.Name='yourservicename")

Set objOutParams = objWMIService.ExecMethod("Win32_Service.Name='yourservicenameagain'", "StartService")

Open in new window

0
 
LVL 25

Expert Comment

by:Ron M
Comment Utility
The pre/post commands only run before and after... there is no way to target each server just before and just after backup.
0
 
LVL 25

Expert Comment

by:Ron M
Comment Utility
make each server it's own backup, with append... that would be the solution.
0
 

Author Comment

by:dlabbadia01
Comment Utility
ok,

thanks all.  you'd think they would implement that feature as it seems like it could be very useful...

d
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
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 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…

762 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

6 Experts available now in Live!

Get 1:1 Help Now