Restore mariadb into addon from another source

Answering my own question for anyone else who comes across this thread.

The solution can be found here: