I am running java web application on heroku. Now i am trying to get the sql dump file from the application.
ProcessBuilder builder = new ProcessBuilder("cmd.exe", "/c", "pg_dump -U postgres -Fc --schema=" + schema + " " + dbName + " >" + path);
The above code works perfectly on local machine having windows.
The question is, how can i get dump file from heroku hosted app using process builder or any other method from the java app?
thanks in advance...