From 588296eeebb29624e895d42ecd520aa9feb44b8f Mon Sep 17 00:00:00 2001 From: Luke Repko Date: Thu, 14 Nov 2024 22:07:59 -0600 Subject: [PATCH] docs: OSPC-367 improve operator restore info (#565) * docs: OSPC-367 Expand on operator restore opts The operator supports restoring a single database. That is a useful feature worth noting in our own docs for those preferring to use the operator versus manually dumping and restoring. * docs: OSPC-367 Demo checking restore status * docs: OSPC-367 Move operator tips toward the top --- docs/infrastructure-mariadb-ops.md | 49 +++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 5 deletions(-) diff --git a/docs/infrastructure-mariadb-ops.md b/docs/infrastructure-mariadb-ops.md index dc95558d..2eb465eb 100644 --- a/docs/infrastructure-mariadb-ops.md +++ b/docs/infrastructure-mariadb-ops.md @@ -87,9 +87,40 @@ dump to your MariaDB database. Refer to the mariadb-operator [restore documentation](https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/BACKUP.md#restore) for more information. +!!! tip "Operator Restore Tips" + + 1. If you have multiple backups available, the operator is able to infer + which backup to restore based on the `spec.targetRecoveryTime` field + discussed in the operator documentation [here](https://github.com/mariadb-operator/mariadb-operator/blob/main/docs/BACKUP.md#target-recovery-time). + 2. The referred database (db1 in the example below) must previously exist + for the Restore to succeed. + 3. The mariadb CLI invoked by the operator under the hood only supports + selecting a single database to restore via the `--one-database` option, + restoration of multiple specific databases is not supported. + +### Restore All Databases + +!!! danger "The following command may lead to data loss" + + ``` shell + cat <