My script is as following:
<?php $database = 'database'; $user = 'user'; $password = 'pass'; $filename = 'database_backup_'.date( 'd-m-Y-h:i:s' ).'.sql'; $result = exec( 'mysqldump '.$database.' --password='.$password.' --user='.$user.' --single-transaction >/some-path/backups/'.$filename, $output ); ?>
This script is creating a file but it is empty.
2.1m questions
2.1m answers
60 comments
57.0k users