Unix Technical Forum

backup database by pg_dump

This is a discussion on backup database by pg_dump within the pgsql Bugs forums, part of the PostgreSQL category; --> Can you help me? To back up database, I use pg_dump command as normal in command prompt 1. C:\Program ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:59 AM
Thanh Thao Nguyen
 
Posts: n/a
Default backup database by pg_dump

Can you help me?

To back up database, I use pg_dump command as normal in command prompt

1. C:\Program Files\PostgreSQL\8.1\bin\pg_dump -h 192.168.77.117 -p 5432 -U quangvu -C BENET2 > a.sql

or

2. C:\Program Files\PostgreSQL\8.1\bin\pg_dump -h 192.168.77.117 -p 5432 -U quangvu -C -f aaa.zzz BENET2

-----> It's OK

But, now i want to use in VBNET code, so I try:

Dim str As String = "C:\Program Files\PostgreSQL\8.1\bin\pg_dump"
Dim para As String = " -h 192.168.77.117 -p 5432 -U quangvu -C BENET2 > a.sql "

Process.Start(str, para)

It run but I can't see the result in my directory? What wrong?

Thanks


---------------------------------
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:59 AM
Douglas Toltzman
 
Posts: n/a
Default Re: backup database by pg_dump

Are you sure your working directory is what you think it is? You may
want to specify a full path for the output, and see if that works. I
suspect your working directory is not set correctly.

On May 12, 2006, at 3:11 AM, Thanh Thao Nguyen wrote:

> Can you help me?
>
> To back up database, I use pg_dump command as normal in command prompt
>
> 1. C:\Program Files\PostgreSQL\8.1\bin\pg_dump -h 192.168.77.117 -p
> 5432 -U quangvu -C BENET2 > a.sql
>
> or
>
> 2. C:\Program Files\PostgreSQL\8.1\bin\pg_dump -h 192.168.77.117 -p
> 5432 -U quangvu -C -f aaa.zzz BENET2
>
> -----> It's OK
>
> But, now i want to use in VBNET code, so I try:
>
> Dim str As String = "C:\Program Files\PostgreSQL\8.1\bin\pg_dump"
> Dim para As String = " -h 192.168.77.117 -p 5432 -U quangvu -C
> BENET2 > a.sql "
>
> Process.Start(str, para)
>
> It run but I can't see the result in my directory? What wrong?
>
> Thanks
>
> Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for
> just 2¢/min with Yahoo! Messenger with Voice.


Douglas Toltzman
doug@oakstreetsoftware.com
(910) 526-5938




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com