05-14-2012 10:58 PM
Does any know how to copy jobs from BE 2012 to another BE 2012 server?
I guess Symantec has removed this feature on BE 2012. I wonder is it possible to done through BEMCLI?
05-14-2012 11:09 PM
Yes. You can create using command line applet.
Please refer pg. 202 of http://www.symantec.com/docs/TECH63645 - Symantec Backup Exec (TM) for Windows Servers Command Line Applet - (English)
05-15-2012 12:07 AM
BEMCMD is for BE 2010 and below. The user is using BE 2012 which uses BEMCLI.
05-15-2012 12:19 AM
It is not very difficult to define jobs in BE 2012. It is probably faster to define the job on the new server using the GUI.
You can use BEMCLI to copy a job definition
Get-BEBackupDefinition
and create a job
New-BEBackupDefinition
but it is probably faster using the GUI
I don't recall a way to copy jobs using the CLI for previous versions of BE.
05-15-2012 01:51 AM
If you've tens of jobs or maybe a hundred job, I prefer not using GUI. Creating jogs using GUI would take rather long time and another thing that you would make easily mistakes.
Can I get all of the jobs' definitions from command:
Get-BEBackupDefinition
05-15-2012 11:39 PM
yes.
06-13-2012 03:31 PM
There is a function in the module to export backup definitions to a ps1 file that can be run on another server
http://www.symantec.com/docs/TECH184683
Export a single backup definition:
Get-BEBackupDefinition –name <definition name> | Export-BEBackupDefinition > c:\<somename>.ps1
To export all definitions to a separate ps1 file:
$jobs = Get-BEBackupDefinition
foreach ($job in $jobs)
{
$defname = $job.name
$job | Export-BEBackupDefinition > c:\$defname.ps1
}
Import the backup definition:
<exported-bebackupdefinition.ps1> -agentserver <server to apply too> | save-BEBackupdefinition
NOTE:
Selection list are not exported and will need to be modified after import if needed
being as this is a ps1 file you could make changes to the script before importing.
06-18-2012 12:29 PM
To expand on Russell's post: the script generated by Export-BEBackupDefinition has all of the selection parameters that New-BEBackupDefinition has:
-FileSystemSelection
-SqlDatabaseSelection
etc.
So...if you just wanted to back up the D: drive with your new jobs, you could do this:
<exported-bebackupdefinition.ps1> -agentserver <server to apply too> -FileSystemSelection D: | save-BEBackupdefinition
-Kirk out.