One-liner to remote copy a MySQL database over SSH:
mysqldump [db] | ssh -C [host] 'mysql [db]'
For anything more complicated there is also taps.