From: | Raymond O'Donnell <rod(at)iol(dot)ie> |
---|---|
To: | Ahmed Mohammed Darwish <ADarwish(at)nasaviation(dot)com> |
Cc: | pgadmin-support(at)postgresql(dot)org |
Subject: | Re: make abackup using CMD |
Date: | 2013-02-09 16:43:01 |
Message-ID: | 51167C95.50702@iol.ie |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
On 09/02/2013 16:13, Ahmed Mohammed Darwish wrote:
> Dears,
>
> I need a help for the following case:
>
> I want to make auto backup for the database using Dos Command line , I
> made the following CMD line
>
> pg-dumpall -h localhost -Upostgres > allinone.bak
>
> but I found every time I have to enter password. So , how can I include
> the password parameter in the above statement so that I can schedule
> this patch to take a backup 4 times daily without entering the password
> every time.
You can't include the password on the command line; you can instead use
an environment variable[1] or a .pgpass file[2].
HTH,
Ray.
[1] http://www.postgresql.org/docs/9.2/static/libpq-envars.html
[2] http://www.postgresql.org/docs/9.2/static/libpq-pgpass.html
--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie
From | Date | Subject | |
---|---|---|---|
Next Message | David Blaymires | 2013-02-10 04:42:39 | Re: make abackup using CMD |
Previous Message | Ahmed Mohammed Darwish | 2013-02-09 16:13:18 | make abackup using CMD |