Dump Database

From: José Pedro Santos <zpsantos1(at)hotmail(dot)com>
To: Postgres Ajuda <pgsql-general(at)postgresql(dot)org>
Subject: Dump Database
Date: 2014-03-17 12:50:20
Message-ID: DUB110-W535EF10F111E05E72751DFE07D0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin French 2014-03-17 13:10:06 Re: Dump Database
Previous Message Albe Laurenz 2014-03-17 11:55:47 Re: Linux OOM-Killer