$command= '/usr/bin/mysqldump --add-drop-table -h localhost -u agir2 -ppassword agir2 > '.$sql_dump_file.' > '.$errorlog.' 2>&1'
the problem with above code it that it does report error on failure, but on success it outputs whole database in to log file.
I am happy to rewrite above or just use bash script.
|