Creating a full MariaDB backup

For some reason I have had a time finding succinct information on creating a simple full (and by full I mean a file you can use to bare metal recover a database) backup with MariaDB.

1. Make a ~/.my.conf file:

2. Run this:

3. Copy your newly created backup file to a secondary storage point.

4. Enjoy!