Java runtime pg_dump with log -
i'm running pg_dump in java runtime using command:
final static string cmd = "/usr/lib/postgresql/9.3/bin/pg_dump -u jboss -v wsemp0316 -f /home/test/test.pg_dump -f /home/test/test.log";
problem not create file test.pg_dump throws actual data test.log. i'm guessing -f used twice using 1> , 2> throws error. encountered this?
maybe should take @ pg_dump documentation.
-f file --file=file send output specified file. parameter can omitted file based output formats, in case standard output used. must given directory output format however, specifies target directory instead of file. in case directory created pg_dump , must not exist before.
my understanding parameter -f
should used once.
Comments
Post a Comment