02-22-2011 08:51 AM
Is it possible to run a policy from the command line in symantec backup exec 2010?
At the moment I am running backup job from command using below
"C:\Program Files\Symantec\Backup Exec\bemcmd.exe" -o1 -j"BackupJobName" -w and it works fine.
The problem is that I want to export the tape after it is completed.
There is an export command but you have to specify the drive and this will change each time the job runs.
I have setup a policy template where it runs the backup and then exports.
Problem is in the "symantec Backup exec 2010 command line applet manual" I can't find the command to run a policy
thanks
Solved! Go to Solution.
02-22-2011 06:00 PM
You cannot run a policy because it is not complete, i.e. it does not have a selection list. Your policy should have 2 templates, one for backup and another for export which is linked to the backup template. You need to generate the jobs from the policy and then use the BEMCMD command that you have been using to start the generated backup job. Once it is finished, the export job would kick off automatically.
02-22-2011 10:05 AM
Hello!
Please check this link which has a list of Backup exec commands for Backup exec 12.
http://ictfreak.files.wordpress.com/2009/01/bemcmd1.pdf
which also works on Backup exec 2010
See if this helps...
Please don't forget to mark it as a solution if this helps!
Thanks!
02-22-2011 06:00 PM
You cannot run a policy because it is not complete, i.e. it does not have a selection list. Your policy should have 2 templates, one for backup and another for export which is linked to the backup template. You need to generate the jobs from the policy and then use the BEMCMD command that you have been using to start the generated backup job. Once it is finished, the export job would kick off automatically.
02-23-2011 07:24 AM
PKH
Thanks for the quick reply. I was thinking about it the wrong way and see now how I have to associate a job with a policy.
I ran the policy and it creates two jobs. one backup and one export
I then run both these commands seperately using BEMCMD
02-23-2011 05:34 PM
You should link the export job to the backup job. This way, the export job will start automatically after the backup job completes. You don't have to start the export job with BEMCMD.
02-25-2011 02:10 AM
PKH
I thought I had them linked but the export does not kick off automaticaly when running from bemcmd so thats why I run them seperately
In the policy under rules I have
"After BackupTemplate1 completes, start ExportMediaTemplate1 to export media"
It works fine when run from symnatec gui.