Backup to S3?

I manage a number of servers on Amazon EC2, all but one use Virtualmin. All accounts on all Virtualmin servers use the scheduled backup feature, with the option to store the backup in S3. It’s excellent. I love it.

However I have one server I manage that is based on a commercial image from the AWS marketplace. I have no control over how the application on the web server is set up, but I do have webmin installed. The application is installed at /var/www/xxxx and has a rather large MySQL database. I am trying to figure out the best way to back up this application and data to S3. Is there any support for S3 in Webmin (other than Virtualmin)?

I’m thinking I can run a scheduled MySQL backup and save the dump to a particular directory. But how to get it to S3?