How To Create Database Backup from SSH

Step 1:

Login to your server via SSH as root user.

Step 2

Use below command to create / export a database.

mysqldump database_name > /backup/database_name.sql

Where

database_name -> The name of database of which you want to create backup.
/backup/database_name.sql -> Location and file name of database backup file.

Leave us a Reply

Your email address will not be published. Required fields are marked *

* *