I'm from argentina (bad english xD)
i'm using Mac OS Server.
The problem is the following:
when i invoke the backup() function, it's create the folder "backup" in the public folder (i'm using MVC php framework) whit 0777 permissions but not create the .sql file.
neither send the file by mail. but that does not matter for now.