MariaDb mysqldump configurations
If your database structure is relatively static then dump it separately (once), and dump only tables data using SELECT .. INTO OUTFILE - this is more fast.
Of course you need:

create a script (the best way - an event procedure) which dumps all (or only changeable) tables data
create a script (maybe as stored procedure in structure dump) which restores the data from this dump taking into account that relational data must be restored in &quot;one then many&quot; order strictly