First cut at examples of the import and export commands

This commit is contained in:
Jeff Bradberry 2020-06-18 15:32:49 -04:00
parent 0fda9d2c56
commit 393369adec

View File

@ -59,9 +59,37 @@ Importing an SSH Key
--name 'My SSH Key' --user 'alice' \
--inputs '{"username": "server-login", "ssh_key_data": "@~/.ssh/id_rsa"}'
Backup/Restore
--------------
Import/Export
-------------
The AWX CLI doesn't currently have official support for backing up and restoring resources (similar to `tower-cli send` and `tower-cli receive`).
Intended to be similar to `tower-cli send` and `tower-cli receive`.
If you rely on this functionality, you should continue to use `tower-cli` at this time.
Exporting everything:
.. code:: bash
awx export
Exporting everything of some particular type or types:
.. code:: bash
awx export --users
Exporting a particular named resource:
.. code:: bash
awx export --users admin
Exporting a resource by id:
.. code:: bash
awx export --users 42
Importing a set of resources stored as a file:
.. code:: bash
awx import < resources.json