This is not the fastest not the safest and not the most eficient, but it does work. and unless you have a realy bussy database this is a pretty oke way to backup your database. It uses mysqldump and the internal plesk credentials so no need to type passwords at all.
It can ofcourse be used on any other mysql server as long as you set the right credentials.
#! /bin/bash # aapjeisbaas.