Previous Topic: Customize the Job ScheduleNext Topic: Replicate and Manage Backup Sessions


Run a BMR Batch Job

If you want to perform a BMR on multiple machines and you want to install the same operating environment on all the machines, you can perform a batch BMR. You do not have to create a job for each BMR job. You can save time and effort, and you can reduce the risk of any error while configuring the BMR machines.

Note: You must have a valid recovery point of the source machine that you want to restore. If you do not have a valid recovery point, you must first back up the source machine and then submit a restore job.

You first define all your BMR settings in a template BMR job and then change the target machine’s address (IP or MAC), hostname, and network configuration using the following command:

d2djob

Follow these steps:

  1. Create a BMR job named BMR-TEMPLATE and run the job for one machine of your multiple machines.

    Note: You can provide any name for the BMR job. You must provide the same job name in the batch BMR script.

  2. Log in to the Backup Server as a root user.
  3. Create a batch BMR script based on the BMR-TEMPLATE job to automatically submit multiple BMR jobs. Use the following script to create a batch BMR script:
    #!/bin/sh
    prename=lab-server
    serverList[0]="<MAC_Address>"
    serverList[1]=" <MAC_Address>"
    serverList[2]=" <MAC_Address>"
    .
    .
    .
    serverList[300]=" <MAC_Address>"
    for((i=0;i<${#serverList[@]};i=i+1))
    do
    ./d2djob --newrestore="BMR-TEMPLATE" --target=${serverList[i]} --hostname=$prename$i --network=dhcp
    done
    
  4. Run the batch BMR script.

    The script runs. Multiple BMR jobs are created in the UI.

A batch of BMR job is run.