# Migrating jobs from one AWX to another AWX, but on K8s

**URL:** <https://forum.ansible.com/t/migrating-jobs-from-one-awx-to-another-awx-but-on-k8s/36255>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [January 27, 2022, 2:55pm UTC](https://forum.ansible.com/t/migrating-jobs-from-one-awx-to-another-awx-but-on-k8s/36255 "2022-01-27T14:55:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt1](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Matt1](https://forum.ansible.com/u/Matt1)\
**Post date:** [January 27, 2022, 2:55pm UTC](https://forum.ansible.com/t/migrating-jobs-from-one-awx-to-another-awx-but-on-k8s/36255/1 "2022-01-27T14:55:56Z")

</div>

Hi,

I’ve got plenty of jobs on AWX (19.2.2) running on Docker (20.10.9) on the 1st VM. I need to move/migrate/clone them to the AWX running on Kubernetes on the 2nd VM.

Can’t find right instructions, 99% of articles are about Tower or backup, which doesn’t help me at all. It’s a lot of stuff, so I hope it’s possible to move them faster than one-by-one.

Please, help me sort it out.

---

<div class="post-metadata">

**Author:** ![Rob\_B](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rob_b/32/4803_2.png) [@Rob\_B](https://forum.ansible.com/u/Rob_B)\
**Post date:** [January 28, 2022, 11:33am UTC](https://forum.ansible.com/t/migrating-jobs-from-one-awx-to-another-awx-but-on-k8s/36255/2 "2022-01-28T11:33:03Z")

</div>

I was able to use the awx cli ([https://pypi.org/project/awxkit/](https://pypi.org/project/awxkit/)) to do this.  
Backup/export from one system and import to another.  
[https://docs.ansible.com/ansible-tower/latest/html/towercli/index.html](https://docs.ansible.com/ansible-tower/latest/html/towercli/index.html)

eg.  
awx --conf.host https://old\_host --conf.token xxx -k export --job\_templates \> job\_templates.json  
awx --conf.host https://new\_host --conf.token yyy -k import \< job\_templates.json

---

<div class="post-metadata">

**Author:** ![Stefan\_Coussens](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/stefan_coussens/32/8432_2.png) [@Stefan\_Coussens](https://forum.ansible.com/u/Stefan_Coussens)\
**Post date:** [January 29, 2022, 4:42pm UTC](https://forum.ansible.com/t/migrating-jobs-from-one-awx-to-another-awx-but-on-k8s/36255/3 "2022-01-29T16:42:13Z")

</div>

Hi,

I created an export of the DB and restored it to an “external” DB that I configured in the awx operator to use this DB and do the migration.  
You can also do this in k8s (see this reddit link [https://www.reddit.com/r/ansible/comments/mvcsyw/migrating\_awx\_from\_the\_old\_dockerbased/](https://www.reddit.com/r/ansible/comments/mvcsyw/migrating_awx_from_the_old_dockerbased/))

kind regards,
