> I tried it, but it is just generating a blank .sql file see this code I > used > > exec("mysqldump -h localhost -u root -p testdatabase > Backup.sql"); you need put the pass for root user of mysql. you need give permissions to apache (user for php) can write on "." folder. look at your apache error log to identify another messages, but i sugggest to use full options as: mysqldump --host=localhost --user=root --password=passforroot \ --lock-tables --quick --extended-insert --complete-inserts \ --database=testdatabase --result-file=Backup.sql regards, -- José Miguel Santibáñez jms@xxxxxxxxx