Currently we have an awx
running on a VM
using containers:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dfb9fa57a8eb ansible/awx_task:latest "/tini -- /bin/sh -c…" 2 months ago Up 6 days 8052/tcp awx_task_1
60dcb5340ca5 ansible/awx_web:latest "/tini -- /bin/sh -c…" 2 months ago Up 6 days 0.0.0.0:80->8052/tcp awx_web_1
e80aaddee738 postgres:9.6 "docker-entrypoint.s…" 2 months ago Up 6 days 5432/tcp awx_postgres_1
54f20decccfe ansible/awx_rabbitmq:3.7.4 "docker-entrypoint.s…" 2 months ago Up 6 days 4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 25672/tcp awx_rabbitmq_1
0e7ed8c75796 memcached:alpine "docker-entrypoint.s…" 2 months ago Up 6 days 11211/tcp awx_memcached_1
What is the recommended way for backing up our awx
instance:
a) Take an export of the VM using ovf
?
b) Just copying the volume where the pgdata is held enough?
c) Running
docker exec -t <postrges_container_id> pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql