Manual Logical Backup Recovery
This document briefly describes how to manually restore a logical backup from a MongoDB deployment to a second MongoDB deployment on another site.
Requirements
There are some requirements that must be met in order to accomplish this:
- Either the ** aws-cli or the azure-cli:** With the credentials necessary to download the backup.
- Access to the bucket where the backup is stored: The CLI must be configured with credentials that permit at least reading the files.
- Access to the old database where the backup metadata is stored: This is necessary to recover the encryption key used to encrypt the backup files. An available a9s Backup Manager is necessary to be able to read data from the database, or to take note of the encryption key beforehand.
How to Discover the Service Instance GUID
In order to identify the Backup ID on a9s Backup Manager, the Cloud Foundry Service Instance guid must be
identified. If the Cloud Foundry CLI can not be used (cf service <service-name> --guid), follow the step below.
Required ID's
- We need the
Service Instance GUIDto find theBackup Manager Service Instance ID. - We need the
Backup Manager Service Instance GUIDto find the Backup ID. - The Backup ID is formed by the
Backup Manager Service Instance GUID+-+<timestamp>.
Using Cloud Foundry and Service Broker Databases
Access the ccdb (Cloud Controller Database)
database.
After connected, find the GUID of the desired Service Instance with:
SELECT name, guid FROM service_instances WHERE name = '<service-instance-name>';