get db backup of mysql in mysql cli code example Example: mysql backup database command line mysqldump database_name > database_name.sql