Backing up awx with Velero

Hi,
has anyone got any experience with using velero to backup awx and restore it into a different cluster?
If not, is there a recommended method for making regular backups in such a way that awx can be restored to a newly built cluster?

I recently asked a very similar question and got a lot of good help here in this google group.
https://groups.google.com/g/awx-project/c/NGBTyqqCwVk

Actually you were the one that helped me :slight_smile: Sorry I did not recognize your email address.

Just keep in mind that there are encrypted fields in the database so you should look at how we backup AWX to make sure you get the key backed up as well.
You will also need to ensure that once you have the PVC on the new cluster you point your awx backup CR to the new backup_pvc, backup_dir and potentially other settings.

-AWX Team

I tried using the existing AWXBackup CRD and it kept failing due to my DB being external (Crunchy PG Cluster)… and I didn’t want to use any third party tool.

I ended up writing my own playbook to do the backup of the whole AWX infra (DB managed or unmanaged), using what the Operator does as a base:

  • create dedicated backup PV+PVC
  • YAML exports of all the configmaps, secrets, certs and keys (incl. receptor network)
  • use a temp Pod (Postgres image matching AWX) to create a pgdump of the AWX DB (backup PVC mounted)
  • save all of this in backup PVC (optionally compress)

Hope it helps!