# AWX backup

**URL:** <https://forum.ansible.com/t/awx-backup/25820>\
**Category:** AWX Project\
**Tags:** awx, aws\
**Created:** [October 25, 2017, 4:23pm UTC](https://forum.ansible.com/t/awx-backup/25820 "2017-10-25T16:23:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Macieszonek](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@Paul\_Macieszonek](https://forum.ansible.com/u/Paul_Macieszonek)\
**Post date:** [October 25, 2017, 4:23pm UTC](https://forum.ansible.com/t/awx-backup/25820/1 "2017-10-25T16:23:12Z")

</div>

I'm running AWX using the docker images on an ec2 instance in AWS.

Is there a method to backup and restore the settings/changes done inside AWX. I looked at the tower documentation but it seems my docker containers are missing some of the tools needed to do the backup/restore.

I thought about just saving the postgresql container and restoring in the event of a failure, but it seems the task container does a database initial setup task when it boots ild have to stop happening.

Just after some advice on what's best here. I'm assuming the ec2 instance could fail at any point and I don't want to lose the setup.

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [October 26, 2017, 7:21am UTC](https://forum.ansible.com/t/awx-backup/25820/2 "2017-10-26T07:21:03Z")

</div>

Hi Paul,

what i´ve done is to backup the directory where the postgresql DB is stored.  
You´ll define it in…/gitrepository/installert/inventory File.

_ **postgres\_data\_dir=/opt/XXX/pgdocker** _

It is possible to copy (cp -a) this directory wherever you want and load it using postgresql container.

Christian

---

<div class="post-metadata">

**Author:** ![Cody\_Harlow](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@Cody\_Harlow](https://forum.ansible.com/u/Cody_Harlow)\
**Post date:** [October 31, 2017, 7:40pm UTC](https://forum.ansible.com/t/awx-backup/25820/3 "2017-10-31T19:40:13Z")

</div>

Have you attempted a test restore of the database?

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [November 1, 2017, 9:00am UTC](https://forum.ansible.com/t/awx-backup/25820/4 "2017-11-01T09:00:33Z")

</div>

Yes, i´ve restored it successfull to another server.

Christian
