B&R-Undercloud: MySQL backup command executed in the container

Updated the documentation regarding backup and restore on the
undercloud, break down the three different ways of doing the back
up depends on the version:
 - podman
 - docker
 - Non-containerized

Change-Id: Ibc6b7c224d28a81da309b36711d2062944ecc65a
This commit is contained in:
Juan Badia Payno 2020-02-18 17:23:45 +01:00
parent ec834a9043
commit 9a696b4e04
1 changed files with 23 additions and 2 deletions

View File

@ -90,9 +90,30 @@ the following steps must be executed.
Database backups
~~~~~~~~~~~~~~~~
The operator needs to backup all databases in the Undercloud node::
The operator needs to backup all databases in the Undercloud node
mysqldump --opt --single-transaction --all-databases > /root/undercloud-all-databases.sql
.. admonition:: Stein and Train
:class: stable
::
/bin/hiera -c /etc/puppet/hiera.yaml mysql::server::root_password
podman exec mysql bash -c "mysqldump -uroot -pPASSWORD --opt --all-databases" > /root/undercloud-all-databases.sql
.. admonition:: Rocky
:class: stable
::
/bin/hiera -c /etc/puppet/hiera.yaml mysql::server::root_password
docker exec mysql bash -c "mysqldump -uroot -pPASSWORD --opt --all-databases" > /root/undercloud-all-databases.sql
.. admonition:: Queens
:class: stable
::
mysqldump --opt --single-transaction --all-databases > /root/undercloud-all-databases.sql
Filesystem backups
~~~~~~~~~~~~~~~~~~