SSH doesn't know anything about databases, you need to use the tools your RDBMS provides. Assuming you're talking about mySQL, that would be mysqldump or mysqlhotcopy, and there should be thousands of Google-able examples of how to use them. Here's the first one I found: