As Gabriel mentioned below, for BACKUP... docker exec -t awx_postgres pg_dumpall -U awx -c > awx_backup_db.sql 6:58 And looks like maybe command to restore back into the awx_postgres container after backup is taken... RESTORE... cat awx_backup_db.sql | docker exec -i awx_postgres
Probably to avoid any updates in the database during backup process. In his case, shutting down container might not be required but if there is an environment where multiple users work on AWX, i guess it might be safe to stop other containers first before taking backup.
As Gabriel mentioned below, for BACKUP...
docker exec -t awx_postgres pg_dumpall -U awx -c > awx_backup_db.sql
6:58 And looks like maybe command to restore back into the awx_postgres container after backup is taken...
RESTORE...
cat awx_backup_db.sql | docker exec -i awx_postgres
...and then restart of all the awx containers.
Hi you have any video to backup of AWX
docs.ansible.com/ansible-tower/2.2.1/html/administration/backup_restore.html
Why do you need to close all the other containers? Isn't Postgress able to handle that?
+1
Probably to avoid any updates in the database during backup process. In his case, shutting down container might not be required but if there is an environment where multiple users work on AWX, i guess it might be safe to stop other containers first before taking backup.
docker exec -t awx_postgres pg_dumpall -U awx -c > awx_backup_db.sql
Thank you Gabriel
Walker Edward Gonzalez Michelle Thompson Edward
I do not see the value of this video and did not get anything out of it.
I ran all the above instructions but it seems it didn't restore backup.
ERROR: constraints taggit.... already exists