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

This commit is contained in:
Zuul 2020-02-25 15:34:51 +00:00 committed by Gerrit Code Review
commit 2bbbad2155
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
~~~~~~~~~~~~~~~~~~