The mariadb-dump command
a database backup program (mariadb-dump is now a symlink to mariadb-dump) 2 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.
Examples
sudo mariadb-dump shop > ~/shop.sql
sudo mariadb-dump shop | gzip > ~/shop-$(date +%F).sql.gz