Restoring a backup
You can restore a backup in multiple ways.
To restore a backup while removing databases from the availability group:
- Log in to the primary replica using SQL Server Management Studio (SSMS).
- Go to Availability Groups > Availability Databases.
- Remove the FCM and FCM_Default databases from the availability group. If using a custom site, remove the custom site.
- Log in to the secondary replica. The databases are stuck in the restoration state. Delete the databases.
- Log in to the primary EMS.
- Go to Dashboard > Status.
- Click Restore.
- Browse to the backup file and proceed.
- Once EMS completes the restoration, add the EMS databases to the availability group:
- Log in to the primary replica using SSMS.
- Under Always On High Availability, right-click Availability Databases and select Add Databases.
- On the Select Database page, enter the password that you configured in Installing EMS and configuring SQL always on HA (EMS 7.0.6 or older) for the EMS databases.
- Select the checkboxes beside the databases. Click Refresh, then select the checkboxes beside the databases. Click Next.
- On Connect to Replicas, connect to the other SQL Server instance previously joined as nodes with the Windows Server failover cluster. Click Next.
- For Data Synchronization, select the option that you used during EMS installation and setting up the availability group.
- Verify that the validated checks succeed. The databases are added to the availability group.
To restore a backup while removing the secondary replica from the availability group:
- Log in to the primary replica using SQL Server Management Studio (SSMS).
- Go to Availability Groups > Availability Databases.
- Right-click the secondary replica. Select Remove from Availability Group.
- Log in to the secondary replica. The databases are stuck in the restoration state. Delete the databases.
- Log in to the primary EMS.
- Go to Dashboard > Status.
- Click Restore.
- Browse to the backup file and proceed.
- Once EMS completes the restoration, add the secondary replica to the availability group:
- Log in to the primary replica using SSMS.
- Under Always On High Availability, right-click Availability Databases and select Add Replicas.
- Under Specify Replicas, select Add Replica, then Add. Enable Automatic Failover. For Availability Mode, select Synchronous commit. For Readable Secondary, select Yes. Click Next.
- On the Enter Passwords tab, enter the password for the EMS databases that you configured during installation. Click Next.
- For Data Synchronization, select the option that you used during EMS installation and setting up the availability group. The secondary replica is added to the availability group.