cancel
Showing results for 
Search instead for 
Did you mean: 

Copy jobs from one BE server to another

Jouni_Heiskanen
Level 2

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?

7 REPLIES 7

RahulG
Level 6
Employee

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)

 

pkh
Moderator
Moderator
   VIP    Certified

BEMCMD is for BE 2010 and below.  The user is using BE 2012 which uses BEMCLI.

pkh
Moderator
Moderator
   VIP    Certified

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.

Jouni_Heiskanen
Level 2

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

 

 

pkh
Moderator
Moderator
   VIP    Certified

yes.

Russell_Norton
Level 3
Employee

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.

BE_KirkFreiheit
Level 4
Employee

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.