Backup function with mysqldump in progress