Dump Database - Mailing list pgsql-general

From José Pedro Santos
Subject Dump Database
Date
Msg-id DUB110-W535EF10F111E05E72751DFE07D0@phx.gbl
Whole thread Raw
Responses Re: Dump Database  (Martin French <Martin.French@romaxtech.com>)
Re: Dump Database  ("Dennis" <dennis@kabonkulator.com>)
List pgsql-general
Dear all,

I'm trying to dump my database using the following command after I enter as su postgres:

pg_dump - U postgres mydb -f mydb.sql

... but I'm always having the following message:

pg_dump [archiver] Could not open output file "mydb.sql" : Permission denied

I try to use the same statement using su.. but I didn't manage. Can someone give me a help?

I'm using Ubuntu 12.04 LTS and Postgres 9.1.

Kind Regards,
José Santos

pgsql-general by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: Linux OOM-Killer
Next
From: Martin French
Date:
Subject: Re: Dump Database