Re: Unable to run pg_dump from crontab

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: nickf(at)ontko(dot)com
Cc: Daniel Ostroff <dano(at)livingincomfort(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Unable to run pg_dump from crontab
Date: 2003-02-19 19:18:45
Message-ID: 1045682325.12931.1031.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

The other option is to use pg_dump's -U flag to specify the user you
want to connect to the database as. See the pg_dump page in the docs for
more info.

Robert Treat

On Tue, 2003-02-18 at 12:29, Nick Fankhauser wrote:
> Dan-
>
> Either create user "adam" in the database, or create the crontab entry under
> a unix user that already has access to the database. I routinely run my
> backups as the "postgres" user to ensure that I don't miss anything.
>
> -Nick
> -----Original Message-----
> From: pgsql-admin-owner(at)postgresql(dot)org
> [mailto:pgsql-admin-owner(at)postgresql(dot)org]On Behalf Of Daniel Ostroff
> Sent: Monday, February 17, 2003 5:18 PM
> To: pgsql-admin(at)postgresql(dot)org
> Subject: [ADMIN] Unable to run pg_dump from crontab
>
>
> I'm trying to run a pg_dump under Crontab (FreeBSD is the OS).
>
> The command line is:
>
> /usr/home/jwilbur/usr/local/bin/pg_dump ShopCart >
> ~/usr/local/shopcart/backup/ShopCart.pgdump
>
> I am getting the following message:
>
> pg_dump: [archiver (db)] connection to database "ShopCart" failed: FATAL 1:
> user "adam" does not exist
>
> What can I do to correct this?
>
> Thanks,
>
> /Dan
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message radha.manohar 2003-02-19 19:19:25 Re: Concurrency control in postgresql
Previous Message Tom Lane 2003-02-19 19:17:43 Re: How do I upgrade or coexist PostgreSQL on a Cobalt XTR system?