I am using Ubunutu. I simply want to create a postgre dump. So I am using the following command:
sudo -u wap PGPASSWORD="postgres" pg_dump -h localhost -U postgres -d n26n -n public -FC -f /tmp/dump_file --verbose
The above creates a dump as expected. However, since I am running it in verbose mode, I want the output to logged in a file. I tried the following:
sudo -u wap PGPASSWORD="postgres" pg_dump -h localhost -U postgres -d n26n -n public -FC -f /tmp/dump_file --verbose >> logfile
The logfile seems to be empty.
How do I indicate the end of the command?