AWX/Database Backup

From Omnia
< AWX
Revision as of 11:00, 14 January 2025 by Kenneth (talk | contribs)
Jump to navigation Jump to search
AWX V19 - Backup and Restore
https://groups.google.com/g/awx-project/c/y0k1hQfI77E
1. Export Docker DB like: pg_dump --username awx awx --format=c" > ./psql_dump.sql
2. Drop AWX-Operator DB: minikube kubectl -- exec -it awx-postgres-0 -- dropdb -U awx awx ( failed here since  the db was  currently  being  used)

3. Create new DB: minikube kubectl -- exec -it awx-postgres-0 -- createdb -U awx awx
4. Restore DB: minikube kubectl -- exec -it awx-postgres-0 -- pg_restore -U awx -d awx < psql_dump.sql
AWX Backup Readme
https://github.com/ansible/awx-operator/blob/devel/roles/backup/README.md
AWX Restore Readme
https://github.com/ansible/awx-operator/blob/devel/roles/restore/README.md