Unix Technical Forum

running pg_dump via pgAgent

This is a discussion on running pg_dump via pgAgent within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> Hi,I am trying to use pgAgent to automatically backup my database once a day. Wouldn't this be the most ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:20 PM
Che
 
Posts: n/a
Default running pg_dump via pgAgent

Hi,I am trying to use pgAgent to automatically backup my database once a day. Wouldn't this be the most common use of pgAgent? I have successfully installed pgAgent, and it runs jobs ok. However, I'm running into problems when I set up a job to run a "batch" step with the following definition: pg_dump -f c:\temp\dump.dat -U postgres test It starts the job, and the statistics for the step shows it is running (I can also see in my task manager that pg_dump is running) ... but it never stops! If i kill the process, the statistics for the step shows "success", but no backup file has been created. When I run the same command at a dos prompt it works fine. I'm at the point now where I figure I'll just set up a windows task that calls the script once a day, but i'd rather use pgAgent to do my backups. Can anyone help?system details:windows xppervasive postgres 8.0.3pgadmin 1.4.1 installed pgAgent via:C:\Program Files\pgAdmin III\1.4>pgAgent INSTALL pgAgent -1 2 -u
postgres -p MyPass123 hostaddr=127.0.0.1 dbname=postgres user=postgres password=postgresABC Thanks!Che

_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com

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 10:41 AM.


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