Thread: accept AD35- 6FA9 -9515

accept AD35- 6FA9 -9515

From
tulasi
Date:
<p>Dear Sir,<p>I have problem when i take a backup from postgresql database.<p>when i issue the following command:<p>$
pg_dumpdbname > file name<p>error: bash: file name permission denied.<p>how to solve this problem. Please give me a
solution.<p>ThanQIn Advance.<p>Tulasi<p><br /><hr size="1" /><b>Do You Yahoo!?</b><br /><a
href="$rd_url/welcome/*http://games.yahoo.com">Yahoo!Games</a> - play chess, backgammon, pool and more 

Re: accept AD35- 6FA9 -9515

From
Peter Eisentraut
Date:
tulasi writes:

> I have problem when i take a backup from postgresql database.
>
> when i issue the following command:
>
> $ pg_dump dbname > file name
>
> error: bash: file name permission denied.

Try

$ pg_dump dbname > "file name"

and make sure you have write access to the current directory.

-- 
Peter Eisentraut   peter_e@gmx.net



Re: accept AD35- 6FA9 -9515

From
"postgresql"
Date:
1. you will probably have to double quote the filename with the 
space character
$ pg_dump dbname > "file name"

2. do you have write permissions to the destination directory?
this should work as it forces the file to the top level of the currently 
logged in user.

$ pg_dump dbname > ~/"file name"


-----Original Message-----
From: tulasi <rama_tulasi_99@yahoo.com>
To: pgsql-sql@postgresql.org
Date: Sat, 20 Apr 2002 00:01:37 -0700 (PDT)
Subject: [SQL] accept AD35- 6FA9 -9515

> 
> Dear Sir,
> 
> I have problem when i take a backup from postgresql database.
> 
> when i issue the following command:
> 
> $ pg_dump dbname > file name
> 
> error: bash: file name permission denied.
> 
> how to solve this problem. Please give me a solution.
> 
> ThanQ In Advance.
> 
> Tulasi
> 
> 
> 
> ---------------------------------
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more