I would like to take back of my database of postgress.
now i am doing the command "pg_dumb " which written in a shell script and run it on command promt
How it will do with PHP?
Can i use that shell script in the PHP?
Is there any need to establish database connection when using pg_dump.
My shell script was like:
pg_dump -f /root/backupfolder/testfile.sql -h sourcedomain databasename
It didnt worked with shell_exec. why?
I tried with the code
shell_exec('g_dump -f /root/backupfolder/testfile.sql -h sourcedomain databasename');
what is the problem?
Is there any alternative solution to the problem??
give me a guidance
thanks in advance.