I am trying to take backup of postgres from InstallAnyWhere which is installer for linux and windows machine.
I am calling pg_dump from Java process builder as command line below
cmdLine: [./pg_dump, -Ft, -b, -f, /tmp/temp1389348461928/postgresbackup, -h, 127.0.0.1, -p, 5432, -U, postgres, dbname]
Cannot run program "./pg_dump": java.io.IOException: error=2, No such file or directory
cmdLine is passed to the process Builder and PGPASSWORD is set before calling pg_dump
Same if call pg_dump from terminal it works fine.
./pg_dump -Ft -b -f /tmp/temp1389018812029/postgresbackup.tar -h 127.0.0.1 -p 5432 -U postgres dbname
Thanks, Brijesh
No such file or directory
– Rugal Jan 10 at 10:27