Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 2. Creating Red Hat Ansible Automation Platform backup resources

download PDF

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

  1. Log in to Red Hat OpenShift Container Platform.
  2. Navigate to Operators Installed Operators.
  3. Select the Ansible Automation Platform Operator installed on your project namespace.
  4. Select the Automation Controller Backup tab.
  5. Click Create AutomationControllerBackup.
  6. Enter a Name for the backup.
  7. 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.
  8. If you want to use a custom, pre-created pvc:

    1. Optionally enter the name of the Backup persistant volume claim.
    2. Optionally enter the Backup PVC storage requirements, and Backup PVC storage class.

      Note

      If no pvc or storage class is provided, the cluster’s default storage class is used to create the pvc.

    3. If you have a large database, specify your storage requests accordingly under Backup management pod resource requirements.

      Note

      You 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"
  9. 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.

Verification

  1. Log in to Red Hat Red Hat OpenShift Container Platform
  2. Navigate to Operators Installed Operators.
  3. Select the Ansible Automation Platform Operator installed on your project namespace.
  4. Select the AutomationControllerBackup tab.
  5. Select the backup resource you want to verify.
  6. Scroll to Conditions and check that the Successful status is True.

    Note

    If Successful is False, the backup has failed. Check the automation controller operator logs for the error to fix the issue.

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

  1. Log in to Red Hat OpenShift Container Platform.
  2. Navigate to Operators Installed Operators.
  3. Select the Ansible Automation Platform Operator installed on your project namespace.
  4. Select the Automation Hub Backup tab.
  5. Click Create AutomationHubBackup.
  6. Enter a Name for the backup.
  7. 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.
  8. If you want to use a custom, pre-created pvc:

    1. Optionally, enter the name of the Backup persistent volume claim, Backup persistent volume claim namespace, Backup PVC storage requirements, and Backup PVC storage class.
  9. Click Create.

    A backup of the specified deployment is created and available for data recovery or deployment rollback.

Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.