Chapter 2. Creating Red Hat Ansible Automation Platform backup resources
Backing up your Red Hat Ansible Automation Platform deployment involves creating backup resources for your deployed automation hub and automation controller instances. Use these procedures to create backup resources for your Red Hat Ansible Automation Platform deployment.
2.1. Backing up the Automation controller deployment
Use this procedure to back up a deployment of the controller, including jobs, inventories, and credentials.
Prerequisites
- You must be authenticated with an Openshift cluster.
- The Ansible Automation Platform Operator has been installed to the cluster.
- The automation controller is deployed to using the Ansible Automation Platform Operator.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to Operators → Installed Operators.
- Select the Ansible Automation Platform Operator installed on your project namespace.
- Select the Automation Controller Backup tab.
- Click Create AutomationControllerBackup.
- Enter a Name for the backup.
-
Enter the Deployment name of the deployed Ansible Automation Platform instance being backed up. For example, if your automation controller must be backed up and the deployment name is
aap-controller, enter 'aap-controller' in the Deployment name field. If you want to use a custom, pre-created pvc:
- Optionally enter the name of the Backup persistant volume claim.
Optionally enter the Backup PVC storage requirements, and Backup PVC storage class.
NoteIf no pvc or storage class is provided, the cluster’s default storage class is used to create the pvc.
If you have a large database, specify your storage requests accordingly under Backup management pod resource requirements.
NoteYou can check the size of the existing postgres database data directory by running the following command inside the postgres pod.
$ df -h | grep "/var/lib/pgsql/data"
Click Create.
A backup tarball of the specified deployment is created and available for data recovery or deployment rollback. Future backups are stored in separate tar files on the same pvc.
2.2. Backing up the Automation hub deployment
Use this procedure to back up a deployment of the hub, including all hosted Ansible content.
Prerequisites
- You must be authenticated with an Openshift cluster.
- The Ansible Automation Platform Operator has been installed to the cluster.
- The automation hub is deployed to using the Ansible Automation Platform Operator.
Procedure
- Log in to Red Hat OpenShift Container Platform.
- Navigate to Operators → Installed Operators.
- Select the Ansible Automation Platform Operator installed on your project namespace.
- Select the Automation Hub Backup tab.
- Click Create AutomationHubBackup.
- Enter a Name for the backup.
-
Enter the Deployment name of the deployed Ansible Automation Platform instance being backed up. For example, if your automation hub must be backed up and the deployment name is
aap-hub, enter 'aap-hub' in the Deployment name field. If you want to use a custom, pre-created pvc:
- Optionally, enter the name of the Backup persistent volume claim, Backup persistent volume claim namespace, Backup PVC storage requirements, and Backup PVC storage class.
Click Create.
A backup of the specified deployment is created and available for data recovery or deployment rollback.