wmfbackups.WMFBackup (xtrabackup option) runs prepare on a given path:
https://phabricator.wikimedia.org/diffusion/OSWB/browse/master/wmfbackups/MariaBackup.py$58
However, it could be that, accidentally, we run prepare on an xtrabackup version that is different that that of the original mariadb.
Ideally, the version would be the same. It is ok if it is the same major version (10.1, 10.4), but a higher minor version. It is undesired if it is the same major version but a lower version minor version. It should prevent running with a different major version (and specially if it is a lower one).
There is also the chance of running xtrabackup from Percona on a MariaDB server dump. This should also be prevented. Checking the server version that generated the 'xtrabackup_info' has a server_version and comparing it to the xtrabackup version could be enough- and log a nice error message.
