Mysqldump on a remote machine

Mydump and gzip of database dbuser:pass@localhost/dbname into remote machine “destination.com”, file ~/dbname.sql.gz

mysqldump -h localhost -u root -ppass dbname | gzip 
| ssh user@destination.com "cat > ~/dbname.sql.gz"