# AWX - Backup and restore

**URL:** <https://forum.ansible.com/t/awx-backup-and-restore/35677>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [August 25, 2021, 11:43am UTC](https://forum.ansible.com/t/awx-backup-and-restore/35677 "2021-08-25T11:43:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agenttank](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@agenttank](https://forum.ansible.com/u/agenttank)\
**Post date:** [August 25, 2021, 11:43am UTC](https://forum.ansible.com/t/awx-backup-and-restore/35677/1 "2021-08-25T11:43:39Z")

</div>

Hi!  
I set up AWX 19.3.0 via minikube and I find it hard to backup and restore the instance.  
My plan for now is to dump my old database with this (seems to have worked)  
docker exec -t awx\_postgres pg\_dump -U awx awx \> awx-dump.sql

and now I am restoring it with this  
docker exec -t cca75ed6b616 pg\_restore -U awx -f awx-dump.sql

I am unsure if it works because of two reasons:

1. is AWX 17 db compatible with with AWX 19.3.0?

2. awx\_task and awx\_web are still running… i wasn’t able to scale it down to 0. and even setting scale to 0 of awx\_operator or the actual deployment/replica group made it to just scale back to 1… or is it a good way to pg\_restore the awx database while the awx containers are running?

thank you for any help!

---

<div class="post-metadata">

**Author:** ![agenttank](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@agenttank](https://forum.ansible.com/u/agenttank)\
**Post date:** [August 25, 2021, 12:52pm UTC](https://forum.ansible.com/t/awx-backup-and-restore/35677/2 "2021-08-25T12:52:10Z")

</div>

ok, and also it is throwing lot’s of syntax errors… i think i will have to wait for a tutorial on how to backup/restore AWX
