Ansible Automation Platform schedule backup

,

AAP 2.6
is it possible to implement a scheduled backup of automationplatform ( no EDA nor hub) via ansible playbooks ,
something like: awx-on-k3s/backup/ansible at main · kurokobo/awx-on-k3s · GitHub

or:
awx-on-k3s/backup/ansible at main · kurokobo/awx-on-k3s · GitHub

Yes, you can set up scheduled backups for AAP 2.6 using the installer’s built-in backup playbook. The approach depends on whether you’re running on VMs or Kubernetes.

For VM-based AAP 2.6:

Run the installer with the backup flag:

./setup.sh -b

This creates a backup tarball of the AAP database and config. You can wrap this in a cron job or schedule it as an AAP job template that runs on the controller node itself.

For K8s/OpenShift deployments:

The awx-on-k3s repo you linked is AWX-specific (the upstream project). For the supported AAP operator on OpenShift, backups are handled through the AnsibleAutomationPlatformBackup custom resource. You create a CR and the operator handles the rest:

apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatformBackup
metadata:
  name: aap-backup
spec:
  deployment_name: your-aap-instance

To schedule it, you’d use a Kubernetes CronJob that creates the backup CR on a schedule.

Quick test first: Run ./setup.sh -b manually on your controller to confirm the backup works, then automate it from there. Since you mentioned no EDA or Hub, you just need to back up the controller database and /etc/tower/ config.

What’s your deployment type (VM or K8s)?

AAP 2.6 running on OKD 4.20