This is a very fine-tuned procedure to restore MariaDB backups. Make sure you restore the DB to the same version of MariaDB.