pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: nickf@ontko.com
Cc: Daniel Ostroff <dano@livingincomfort.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Unable to run pg_dump from crontab
Date: 19 Feb 2003 14:18:45 -0500
Message-ID: <1045682325.12931.1031.camel@camel> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGGEAPGMAA.nickf@ontko.com>
References: <NEBBLAAHGLEEPCGOBHDGGEAPGMAA.nickf@ontko.com>

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@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Daniel Ostroff
> Sent: Monday, February 17, 2003 5:18 PM
> To: pgsql-admin@postgresql.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






view thread (3+ messages)

Message-ID: <1045682325.12931.1031.camel@camel>
Permalink:  ../1045682325.12931.1031.camel@camel/
Also on:    postgresql.org/message-id/1045682325.12931.1031.camel@camel

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: xzilla@users.sourceforge.net, nickf@ontko.com, dano@livingincomfort.com
  Subject: Re: Unable to run pg_dump from crontab
  In-Reply-To: <1045682325.12931.1031.camel@camel>
  References: <NEBBLAAHGLEEPCGOBHDGGEAPGMAA.nickf@ontko.com> <1045682325.12931.1031.camel@camel>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox