Note: My WordPress database name is wordpress. I will use it in the example below.
It will work for any MySQL database.
(The procedure below will work with any version of WordPress too)

Backup:
mysqldump --opt wordpress | gzip -9 > wordpress.sql.gz

Restore:
gunzip wordpress.sql.gz
mysql -u rootusername -p **** wordpress < wordpress.sql

For detailed usage of mysqldump and mysql commands refer to MySQL documentation.

PS. I am aware of the Single click plugin for WordPress. But I don't trust any WordPress plugin with my database, unless I have fully checked the code :)