Protocol extension would stream binary copy of directories , datadir , log_dir and push them to disk.
The server is put in a provisioning mode , that should be detectable, shutdown activity stop all connections, free open files and start writing to disk.
Extending compression mode can be added with xbstream integration
PROVISIONING grants would enable backup applications users to start using the protocol.
mariadb client would be extend to accept
LOAD DATA LOCAL INFILE "backup20151009.tar"' INTO DIRECTORY @@datadir USING tar;
LOAD DATA LOCAL INFILE "backup20151009.tar"' INTO DIRECTORY @@datadir USING xbstream;
This task also link to better integration of TokuDBhotbackup.