Restore a backup

Backups are enabled by default. mariadb-operator takes a physical backup every night, between 22:00 and 06:00 at a time derived from the instance’s name, and keeps each one for backup.maxRetention, 30 days by default. Set backup.schedule.backup to a cron expression to pick the time yourself.

The backups are listed in the instance namespace:

$ kubectl -n <instance-namespace> get physicalbackups

Restoring is not self-service yet: a claim cannot start from a backup. Ask your platform operator, who can restore a backup into a new MariaDB with mariadb-operator’s bootstrapFrom.