# Need advices on AWX config import/export

**URL:** <https://forum.ansible.com/t/need-advices-on-awx-config-import-export/6974>\
**Category:** Get Help\
**Tags:** awx-operator, ansible, awx\
**Created:** [July 2, 2024, 1:46pm UTC](https://forum.ansible.com/t/need-advices-on-awx-config-import-export/6974 "2024-07-02T13:46:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![motorbass](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@motorbass](https://forum.ansible.com/u/motorbass)\
**Post date:** [July 2, 2024, 3:04pm UTC](https://forum.ansible.com/t/need-advices-on-awx-config-import-export/6974/6 "2024-07-02T15:04:08Z")

</div>

In addition, for newbies like me who need to perform a dump from embedded Postgre DB, the easiest way is :

Create a temporary port-forward between AWX postgre DB and your computer with :

1. Get information about Postgre DB with :

```auto
# retrieve your secret's name, something like awx-postgres-configuration
kubectl get secrets

# show secrets 
kubectl get secrets awx-your-instance-postgres-configuration -o yaml

```

1. Decode with a base64 decoder the following datas ( ’ | base64’ if you use Linux, else use an online decoder)

```auto
data:
  database: xxxxx
  host: xxxxx
  password: xxxxx
  port: xxxxx
  type: xxxx
  username: xxxx

```

1. Create a temporary port-forward between your postgre pod and your computer

```auto
kubectl port-forward awx-your-postgre-pod 5432:5432

```

1. Finally, you can access the DB with any tools you got, in my case DBeaver, then perform a Backup.  
 ![image](https://us1.discourse-cdn.com/ansible/original/2X/7/70490e6c91e4b1df612c77fc6300e4190ef3c42b.png)

---

_[View the full topic](https://forum.ansible.com/t/need-advices-on-awx-config-import-export/6974)._
