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 |
Then add the following configuration and uncomment options if needed:
[...] |
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 |