export database in ubuntu, linux via putty

mysqldump -u root -p database_name>backuptoday.sql

It will save the file by default in the directory below.
/home/ubuntu/