Andrey,
Hi, thanks for the awxkit details which has been successfully installed.
I tried exporting "all" however got the message "'ApiV2' object has no attribute 'execution_environments'" so had to exclude that asset from the list being exported.
## system #1 (EXPORT)
# awx -k -f json export --users --organizations --teams --credential_types --credentials --notification_templates --projects --inventory --inventory_sources --job_templates --workflow_job_templates --applications --schedules > awxkit-backup.json
>>> Copied the .json file to System #2
## System #2 (IMPORT)
# awx -k -f json import --users --organizations --teams --credential_types --credentials --notification_templates --projects --inventory --inventory_sources --job_templates --workflow_job_templates --applications --schedules < awxkit-backup.json
'ApiV2' object has no attribute 'execution_environments'
#
# awx -k -f json import --users --organizations --teams < awxkit-backup.json
'ApiV2' object has no attribute 'execution_environments'
#
# awx -k -f json import --users < awxkit-backup.json
'ApiV2' object has no attribute 'execution_environments'
#
The export then completed "ok" however even without specifying "execution_environments" on any of the import attempts I still get the issue being report.
Have you seen similar behaviour?
Many thanks, Steve
------------------------------
Steve Munday
AIX, IBM i, HMC, PowerVM
------------------------------
Original Message:
Sent: Fri February 10, 2023 06:52 AM
From: Andrey Klyachkin
Subject: AWX on AIX -- How to Backup / Restore
Steve,
as far as I understand, tower-cli is not supported anymore and the repo on github is archive. The new tool is called awx and can be installed with:
pip3 install awxkit
Can you check if it performs better for you?
OTOH you're completely right. Almost all the data is in the database and it should be enough to back up the database together with some configuration files (/etc/tower).
Edit: May be you should look at VM Recovery Manager or something similar for your DR solution?
------------------------------
Andrey Klyachkin
https://www.power-devops.com
------------------------------