Jarkko,
I just uploaded my ssh-based backup script
here.
It should be easy to modify the "tar" command to do a db backup. Here's the full description:
"A perl backup script based on ssh using no- passphrase DSA keys. Detailed instructions in the script itself. Uses tar and scp locally, but it's easy to modify for other commands. Also emails if the local commands failed."