restore mariadb from bz2 file cli code example Example: restore mariadb from bz2 file cli bunzip2 < db_filename.sql.bz2 | mysql -u root -p target_db_name