pg_dump automatic

From: "Enrico Comini" <algobit(at)algobit(dot)com>
To: "ML-Postrges-general" <Pgsql-General(at)Postgresql(dot)org>
Subject: pg_dump automatic
Date: 2003-01-23 22:41:05
Message-ID: PPEOLEBLEGFKDAOCDMLHEEOOHMAA.algobit@ALGOBIT.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear friends,
my problem is to make automatic dump of a database.
I have a .backup.sh file for dump containing:

#! bin/sh
pg_dump -U user database > dump.txt

I have a password on the database, so when the file is executed it prompt
for the password.
I try :
pg_dump < passfile -U user database > dump.txt
pg_dump -U user database < -passfile > dump.txt

but is the same.
How I have to do ? THANKS

Enrico

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael 2003-01-23 22:45:23 ERROR: language "plpgsql" does not exist
Previous Message Dennis Gearon 2003-01-23 22:37:15 Re: ORDER BY 'criteria'