I am using php to get backup of mysql database. On localhost it's working fine and the command is run as following:
$cmd = 'D:\xampp\mysql\bin\mysqldump --user=' .$db['username'].' --password= '. $db['password'] .' --host='.$db['host'].' '.$db['database'].' > '.FCPATH.$filename;
system($cmd,$return);
This works perfect when at localhost, but I want to this at godaddy hosting, so I don't know how to find the mysqldump path or how to store the .sql file.
at local my app directory is this
http://localhost/backup_app/
and folder i am using to store is
http://localhost/backup_app/DB_Backup but actual path that i given to store .sql file is using FCPATH
i.e D:\xampp\htdocs\backup_app
and I don't know how to generate this path on godaddy.
Can anyone help?