In case of backup server failure/crash, If the backup data is stored on a separate storage device and the database dump files remain intact, you can rebuild or reconstruct the BDRSuite Backup Server from scratch.
Based on your requirement, you can perform rebuild of any of the following:
- Rebuild the entire backup server
- Rebuild the specific backup job
- Rebuild the main database only
Follow the steps below to rebuild the BDRSuite Backup Server to its previous state (before failure) with all the backup jobs.
Note: The following steps are applicable only if you are using BDRSuite Backup Server v5.3 and above. After completing all the necessary steps, the rebuilding process may take some time to complete. This includes rebuilding jobs and making them available for restoration.
The following are required for rebuilding the BDRSuite Backup Server:
1. Backup Data (Mandatory)
- Backup storage targets that hold backup data. All the backup data are stored inside "sgstorage" folder on the storage drives attached earlier. When more than one drive is configured for storage, ensure you have all of them.
- For example, when E and H drives are configured as storage drives, then make sure you have both E:\sgstorage, H:\sgstorage.
2. Database Dump File (Mandatory):
- By default, BDRSuite Backup Server configurations are stored in the database. This is taken as a dump and stored in the backup repository.
- The dump file is stored inside the "sgstorage" folder of the 'first volume/drive' that has been configured as the backup repository in your previous setup. You will have the last three days dump which you can identify based on the timestamp added to the dump folder name. Make sure to use the latest dump for rebuild.
Database Dump File name format is as follows: SGDatabasexxxxxxxxxxxx.sql. Example: SGDatabase202301110000.sql
Database Dump file Location (example):
Windows:<repositorylocation>\sgstorage\<reponame>\VembuDBDumps\SGDatabasexxxxxxxxxx_xx.sql
E:\sgstorage\DefaultRepo\VembuDBDumps\SGDatabase_2022_06_01_00_00.sql
Ubuntu - <repository location="">/sgstorage/DefaultRepo/SGDatabase/VembuDBDumps/SGDatabasexxxxxxxxxx_xx.sql
/sgstorage/DefaultRepo/SGDatabase/VembuDBDumps/SGDatabase_2022_06_01_00_00.sql
3. BDR ID & Product Version:
You need to install the same backup server version and also, you need to provide the same BDR ID of your old backup server while installing the new backup server.
- Login to your Vembu Portal account.
- Navigate to Account -> Registered BDR Servers. Under BDRSuite (On-Premise) -> Registered Backup & Offsite DR Servers, you can find the BDR ID and Version of the backup server you want to rebuild.
- Navigate to the Tab: Downloads. Select the version of your old backup server and download it.
4. Rebuild Script:
Make sure you have downloaded the Rebuild Script. Click to download the
Rebuild Script zip file.
Linux
BDRSuite v5.3 & above:
home/rebuild >> "/home/vembubdr/Vembu/BackupForAWS/Python37/bin/python" rebuild.py
Step 3: After the script has run, you will be asked to select one of the rebuild options to continue.
You can choose one of the following options based on your requirement and proceed.
Option 1: Rebuild the Main Database Only.
Option 2: Rebuild the Entire BDRSuite Server (No Change in Backup Repository Locations).
Option 3: Rebuild Specific Backup Job.
Option 1: Rebuild the Main Database Only (Skip this option, if you are planning to rebuild the entire backup server)
- This option allows you to rebuild the BDRSuite Backup Server main database alone (Server & Backup configurations). Then you can manually rebuild a specific backup job.
- For this option, you will need the Main database dump. Note: The main database dump will be stored on the backup repository automatically. You can find the dump file inside the "sgstorage" folder of the first volume/drive that has been configured as repository. Refer to prerequisite section - 2nd point.
- Once the script has run, you will be asked the following details. To rebuild the main database only, follow the steps below:
Please enter the value of the Rebuild Type You wish to proceed with: 1
Please enter the full path of the main database dump file location to perform rebuild:
Refer to prerequisites section - 2nd point for the database dump location and provide the location in the mentioned format.
Example:
Windows: Please enter full path of the main database dump file location to perform rebuild:
E:\sgstorage\automationbvtpool\VembuDBDumps\SGDatabase_2023_01_24_00_00.sql
Linux: Please enter full path of the main database dump file location to perform rebuild:
/sgstorage/automationbvtpool/VembuDBDumps/SGDatabase_2023_01_24_00_00.sql
Option 2: Rebuild the Entire BDRSuite Server (No Change in Backup Repository Locations)
This option allows you to reconstruct entire BDRSuite Backup Server if the BDRSuite machine is lost due to corruption or other reasons.
To rebuild backup server using this option, you will need the following;
- Backup data: Please note that the drive letters of the backup storage locations should not be changed. (Refer step 2: Attach the backup data & database dump file to the same location on the backup server).
- Main database dump (Refer prerequisite 2nd point).
Please enter the value of the Rebuild Type You wish to proceed with:
Type "2" and press enter to choose the rebuild type as "Rebuild the Entire BDRSuite Server"
Please specify the type of server for which you wish to perform rebuild:
- BDRSuite Backup Server Rebuild
- BDRSuite OffsiteDR Server Rebuild
[1 or 2]:
Type "1" and press enter to choose to rebuild the "BDRSuite Backup Server"
Please enter the full path of the main database dump file location to perform rebuild:
Refer to prerequisites section - 2nd point for the database dump location and provide the location in the mentioned format.
Example:
Windows: Please enter full path of the main database dump file location to perform rebuild:
E:\sgstorage\automationbvtpool\VembuDBDumps\SGDatabase_2023_01_24_00_00.sql
Linux: Please enter full path of the main database dump file location to perform rebuild:
/sgstorage/automationbvtpool/VembuDBDumps/Recentdump.sql
Option 3: Rebuild Specific Backup Job
This option will be helpful if you have many backup jobs and you want to rebuild a particular backup immediately if the shared DB for a particular backup job is corrupted.
Once the script has run, you will be asked the following details. To rebuild the specific backup job, follow the steps below:
Please enter the value of the Rebuild Type You wish to proceed with:
Type "3" and press enter to choose the rebuild type as "Rebuild Specific Backup Job"
Please specify the type of server for which you wish to perform rebuild:
- BDRSuite Backup Server Rebuild.
- BDRSuite OffsiteDR Server Rebuild.
[1 or 2]:
Type "1" and press enter to choose to rebuild the "BDRSuite Backup Server"
Enter the name of the backup job that needs to be rebuild:
Here you need to enter the backup job name that you want to rebuild.
Example: Enter the name of the backup job that needs to be rebuild: vmware-job-1
Enter the name of the client to which the backup job is assigned:
Here you need to enter the BDR ID of the BDRSuite Server/Client from which the backup job was configured.
Example: Enter the name of the client to which the backup job is assigned: backupserver01
Step 4: After completing all the necessary steps and successful script execution, you can log in to the backup server. The backup jobs will be listed and the rebuild process for each will start.