AAP Backup Containerized Bundle

Logging in with the dedicated non-root user account (here, aap) to perform a backup and access the automation platform’s installation directory is required. To control the compression of backup files before sending them to the host running the operation, you can use specific variables in the inventory file.

Inventory file option

Connect to the aap user ang go to the installation directory then open the inventory-growth file:

$ cd MyInstallDir
$ vim inventory-growth

Then add the following configuration and uncomment options if needed:

[...]

# Global control of compression for filesystem backup files
use_archive_compression=true

# Component-level control of compression for filesystem backup files
#controller_use_archive_compression=true
#eda_use_archive_compression=true
#gateway_use_archive_compression=true
#hub_use_archive_compression=true
#pcp_use_archive_compression=true
#postgresql_use_archive_compression=true
#receptor_use_archive_compression=true
#redis_use_archive_compression=true

# Global control of compression for database backup files
use_db_compression=true

# Component-level control of compression for database backup files
#controller_use_db_compression=true
#eda_use_db_compression=true
#hub_use_db_compression=true
#gateway_use_db_compression=true

Launch the backup

AAP have a built-in command to backup your installation and your configuration.
By running the following command, the backup process creates archives of PostgreSQL databases, Configuration files and Data files.

To perform a backup, run:

$ ansible-playbook -i <path_to_inventory> ansible.containerized_installer.backup

To choose the target directory. Here, the backup will be stored in /tmp/2025-11-26_AAP_Backup:

ansible-playbook -i inventory-growth ansible.containerized_installer.backup -e "backup_dir=/tmp/$(date +%F)_AAP_Backup"

When the playbook execution is finished, backups are listed in /tmp/2025-11-26_AAP_Backup:

$ ls -l /tmp
total 32
[...]
drwxr-x--- 3 aap aap 21 Nov 22 14:50 2025-11-22_AAP_Backup
drwxr-x--- 3 aap aap 21 Nov 23 14:50 2025-11-23_AAP_Backup
drwxr-x--- 3 aap aap 21 Nov 24 14:50 2025-11-24_AAP_Backup
drwxr-x--- 3 aap aap 21 Nov 25 14:50 2025-11-25_AAP_Backup
drwxr-x--- 3 aap aap 21 Nov 26 08:41 2025-11-26_AAP_Backup

Documentation

https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.6/html/containerized_installation/maintaining-containerized-aap

Partager