If you want to backup your MySQL database on your Linux dedicated server via SSH the below mentioned steps are as follows

Step I :-
Do login to your dedicated server as root via SSH.
Step II :-
Please type the following command in order to create a backup of your MySQL database:
#mysqldump DATABASE_NAME > BACKUP.sql
To change DATABASE_NAME with the actual name of the database you want to back up.
This will create a backup file of your database called BACKUP.sql that you can later use to restore your information from.
To restore data base from backup you can use the following command.
#mysql DATABASE_NAME <backup.sql