In this step, you will create a cloud credential for the clusters that will perform backup and restore operations. You will need to generate an access key and secret within AWS in order to create the credential.
Ensure you are logged into the console
In your project, navigate to Infrastructure -> Cloud Credentials
Click on New Credential
Provide a name for the Credential
Select Data Backup for Type
Select AWS for Provider
Select ACCESS_KEY for Credential Type
Enter the Access Key created in AWS
Enter the secret created in AWS
Click Save
Alternatively, you can create the cloud credential using RCTL and build this into an automation pipeline. The following command could be used ensuring the credential name access key and secret key are updated first.
In this step, we will create two backup locations which will store the control plane backup data and persistent volume data respectively. We will use an Amazon S3 bucket to store the data.
First, we will create the backup location for the Control Plane backups.
In your project, navigate to Backup/Restore -> Locations
Click on New Location
Provide a name for the Location
Select Control Plane Backup for Type
Click Create
Select Amazon for the Target Type
Enter the AWS region where the bucket is located
Enter the S3 bucket name
Click Save
Navigate to Backup/Restore -> Locations
Click on New Location
Provide a name for the Location
Select Volume Backup for Type
Click Create
Select Amazon for the Target Type
Enter the AWS region where the bucket is located
Click Save
Alternatively, you can create the backup locations using RCTL and build this into an automation pipeline. The following commands could be used ensuring the location name, bucket region and bucket name are updated first.
In this step, we will create a data agent on each cluster where a backup or restore operation will occur. The agent on each cluster will be used to perform the backup/restore operations.
Perform the following steps for each cluster where backup or restore operations will be peformed.
In your project, navigate to Backup/Restore -> Data Agents
Click on New Agent
Provide a name for the Data Agent
Click Create
Select the cloud credential of the cluster where the data agent will be deployed
Select Enable Volume Backups for On-Prem Clusters
Update the Pod Volume Path if different than the default value
Click Save
We must now deploy the agent to a cluster.
Click Deploy to Clusters
Select the cluster
Click Deploy
Perform the previous steps again for the second cluster
Alternatively, you can create and deploy the data agents using RCTL and build this into an automation pipeline. The following commands could be used ensuring the data agent name, cloud credential name and cluster name are updated first.
In this step, you will create both a backup and a restore policy.
First, you will create a backup policy.
In your project, navigate to Backup/Restore -> Policies
Click on New Policy
Provide a name for the backup policy
Select "Backup for Type
Click Create
Under the Config section, select the control plane backup location that was previously created
Select Persistent Volume Backups to enable it
Select the volume backup location that was previously created
Click Save
Alternatively, you can create the backup policy using RCTL and build this into an automation pipeline. The following command could be used ensuring the policy name, control plane location and volume location are updated first.
Alternatively, you can create the restore policy using RCTL and build this into an automation pipeline. The following command could be used ensuring the policy name is updated first.