How do I make a backup of the database?

mysql -u user_name -p database_name < db.sql