I created a shell script (not for webmin). Put it in /etc/cron.daily.
The scripts back up the database (saves it as .gz) and then uploads its ssh to another server. For authorization. I install ssh keys, so no password is required. Backup files have a unique name, so you do not overwrite backup files.
Here's how you can create a file name inside a script:
now=`date +%Y%m%d_%H%M` dst_path=/var/local/backups filename="$dst_path/$database.$now.sql.gz"
Then you should write a small script that deletes all backup files that are older than x days.
#!/bin/sh
source share