KB-2253334

Capture an independent database and deployment recovery set

Build and test a recovery set that includes the MariaDB data and deployment state the application JSON export cannot replace.

12 views

Prepare storage and identify the source

Use the actual installation directory and its exact Compose file selection. Capture the version markers when present, source tree or exact release archive, private .env, overrides, bind-mounted configuration, generated RADIUS dictionary and certificate volumes. Record the real names and mount sources of database and backup volumes rather than assuming another installation uses the same names. Encrypt the recovery destination and restrict access; SQL dumps and keys are not shareable diagnostics.[4][8][9]

Take a logical SQL copy in an approved window

Pause external writers and drain traffic according to the recovery objective. The project’s updater stops application writers before using this logical dump form. This is not a raw copy of the live database volume. The example assumes /srv/private-recovery already exists and is access-controlled; choose a new filename for each capture and do not overwrite the only copy.[8]

umask 077
out=/srv/private-recovery/radius-rehearsal.sql
docker compose exec -T mariadb sh -c 'MYSQL_PWD="$MYSQL_ROOT_PASSWORD" exec mariadb-dump --single-transaction --routines --triggers --events --databases radius -uroot' > "$out" && test -s "$out" && sha256sum "$out"

Check the command exit status as well as the file size: shell redirection can leave an empty or partial file after a failed dump. Record the capture time, exact source release and dump checksum separately. Make an encrypted off-host copy and verify its hash at the destination. Back up deployment files and persistent certificate or backup state through your approved snapshot or file-backup procedure; the SQL alone does not capture them.[5][8][9]

Prove recovery away from the original

For a copy of a node at 192.0.2.51, restore the SQL into an empty disposable MariaDB instance on an isolated host using the matching database and compatible code. Keep API and RADIUS writers off until database checks pass. Verify selected tenant and log counts, key configuration, management sign-in and an approved test NAS exchange after startup. Record both the newest recovered data and elapsed recovery time. If the time or data gap exceeds the requirement, change the backup plan before relying on it. A successful JSON download or nonzero SQL file is not a substitute for this rehearsal.

If the restored database is readable but the test client cannot establish trust, check the recovered certificate volumes and the private runtime configuration against the recorded inventory. Do not issue replacement trust material as a routine database-restore step; that can invalidate otherwise recoverable client configurations.[4][9]

References