
Fixed Patchset 4 comments Fixed Patchset 3 comments and added additional updates Signed-off-by: Juanita-Balaraj <juanita.balaraj@windriver.com> Change-Id: I7482afc3a90bbdc94b6ecd8b6ac39d831b8a45db Signed-off-by: Juanita-Balaraj <juanita.balaraj@windriver.com>
67 lines
2.2 KiB
ReStructuredText
67 lines
2.2 KiB
ReStructuredText
|
|
.. bqg1571264986191
|
|
.. _running-ansible-backup-playbook-locally-on-the-controller:
|
|
|
|
=====================================================
|
|
Run Ansible Backup Playbook Locally on the Controller
|
|
=====================================================
|
|
|
|
In this method the Ansible Backup playbook is run on the active controller.
|
|
|
|
Use the following command to run the Ansible Backup playbook and back up the
|
|
|prod| configuration, data, and user container images in registry.local data:
|
|
|
|
.. code-block:: none
|
|
|
|
~(keystone_admin)]$ ansible-playbook /usr/share/ansible/stx-ansible/playbooks/backup.yml -e "ansible_become_pass=<sysadmin password> admin_password=<sysadmin password>" -e "backup_user_local_registry=true"
|
|
|
|
The <admin_password> and <ansible_become_pass> need to be set correctly
|
|
using the ``-e`` option on the command line, or an override file, or in the
|
|
Ansible secret file.
|
|
|
|
The output files will be named:
|
|
|
|
.. _running-ansible-backup-playbook-locally-on-the-controller-ul-wj1-vxh-pmb:
|
|
|
|
- inventory_hostname_platform_backup_timestamp.tgz
|
|
|
|
- inventory_hostname_openstack_backup_timestamp.tgz
|
|
|
|
- inventory_hostname_docker_local_registry_backup_timestamp.tgz
|
|
|
|
- inventory_hostname_dc_vault_backup_timestamp.tgz
|
|
|
|
The variables prefix can be overridden using the ``-e`` option on the command
|
|
line or by using an override file.
|
|
|
|
.. _running-ansible-backup-playbook-locally-on-the-controller-ul-rdp-gyh-pmb:
|
|
|
|
- platform_backup_filename_prefix
|
|
|
|
- openstack_backup_filename_prefix
|
|
|
|
- docker_local_registry_backup_filename_prefix
|
|
|
|
- dc_vault_backup_filename_prefix
|
|
|
|
The generated backup tar files will be displayed in the following format,
|
|
for example:
|
|
|
|
.. _running-ansible-backup-playbook-locally-on-the-controller-ul-p3b-f13-pmb:
|
|
|
|
- localhost_docker_local_registry_backup_2020_07_15_21_24_22.tgz
|
|
|
|
- localhost_platform_backup_2020_07_15_21_24_22.tgz
|
|
|
|
- localhost_openstack_backup_2020_07_15_21_24_22.tgz
|
|
|
|
- localhost_dc_vault_backup_2020_07_15_21_24_22.tgz
|
|
|
|
These files are located by default in the /opt/backups directory on
|
|
controller-0, and contains the complete system backup.
|
|
|
|
If the default location needs to be modified, the variable backup_dir can
|
|
be overridden using the ``-e`` option on the command line or by using an
|
|
override file.
|
|
|