1. Login to your Vembu Portal account and download the same version (v3.7 , v3.7 Update 1 , v3.8 , v3.8 Update 1 , v3.9 , v3.9 Update1 , v3.9.1 , v3.9.1 Update 1) of the Vembu BDR Backup Server installer that was running on your machine before the failure.
2. Run the installer with administrator/root privileges. Ensure that you configure the same drive letters for the storage location as previously set up (e.g., the same E drive as mentioned in earlier steps).
3. After installation, make sure that the Vembu BDR Backup Server for Virtual Physical Workloads service and Vembu BDR Backup Server for AWS service are not running. If they are running, stop these services.
4. Open the 'Vembu BDR-Home' location and replace the following sub-folders with the sub-folders copied earlier: 'Plugin-data' and 'conf'.
5. Copy the previously renamed sgstorage folders, 'old1sgstorage' and 'old2sgstorage' (renamed during earlier steps), to their respective locations (E, H Drive) and rename them back to "sgstorage".
a) Open a command prompt with administrator privileges and run the following command from the PostgreSQL installation location to import the dumped database:
For Windows:
psql.exe -U <user_name> -p <port_num> -d <destination_db> -f <file_path>
Example:
C:\Program Files\PostgreSQL\9.6\bin>psql.exe -U postgres -p 32010 -d SGDatabase -f "E:\sgstorage\Default_Repo\SGDatabase.sql"
For Linux:
psql -U <user_name> -p <port_num> -d <destination_db> -f <file_path>
Example:
psql -U postgres -p 32010 -d SGDatabase -f /sgstorage/Default_Repo/SGDatabase/SGDatabase.sql
Note: To find the port number of PostgreSQL you can execute the command "\conninfo" in the PostgreSQL command line util.
b) If you want to rebuild with all backups present in the backup server, execute the following command in the command prompt from the “VembuBDR-Home” location:
For Windows:
bin\VembuBDR.exe CheckAndUpdateDB All ChunkEntryRefill
For Linux:
./bin/VembuBDR CheckAndUpdateDB All ChunkEntryRefill
OR
If you want to recover the shared schema for a specific backup job name, then execute the following command:
For Windows:
bin\VembuBDR.exe CheckAndUpdateDB All <ClientName> <BackupName> ChunkEntryRefill
For Linux:
./bin/VembuBDR CheckAndUpdateDB All <ClientName> <BackupName> ChunkEntryRefill