Comments - Full Backup and Restore with Mariabackup
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
I have a question about restoring from a mariabackup backup into a mariadb instance running in a docker container.
You say that you have to stop the mariadb instance before doing the above restore commands. However, if you stop mariadb (mysqladmin shutdown), the docker container stops. Do you see the problem? If the container is stopped, then there is no place to run the mariabackup restore commands from above.
(Pardon my new-ness to all of this. I am an experienced DBA - the container / mariadb world is new to me). Thanks.
Normally the database files itself are not in the container but instead somewhere else.
So the procedure would be: - Stop the mariadb instance - Run the above commands on the main machine or in another container that has access to the databases directory - Restart the mariadb instance