Automated backup strategy?

Can anyone recommend an automated backup strategy? My site is on shared hosting accessible by SSH so I’m thinking about a cron job on a separate server that kicks off mysqldump and rsync. This doesn’t seem terribly reliable, though, so I’m looking for inspiration.