pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Unable to run pg_dump from crontab
3+ messages / 3 participants
[nested] [flat]

* Unable to run pg_dump from crontab
@ 2003-02-17 22:17  Daniel Ostroff <dano@livingincomfort.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Daniel Ostroff @ 2003-02-17 22:17 UTC (permalink / raw)
  To: pgsql-admin

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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Unable to run pg_dump from crontab
@ 2003-02-18 17:29  Nick Fankhauser <nickf@ontko.com>
  parent: Daniel Ostroff <dano@livingincomfort.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Nick Fankhauser @ 2003-02-18 17:29 UTC (permalink / raw)
  To: Daniel Ostroff <dano@livingincomfort.com>; pgsql-admin

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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Unable to run pg_dump from crontab
@ 2003-02-19 19:18  Robert Treat <xzilla@users.sourceforge.net>
  parent: Nick Fankhauser <nickf@ontko.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Robert Treat @ 2003-02-19 19:18 UTC (permalink / raw)
  To: nickf@ontko.com; +Cc: Daniel Ostroff <dano@livingincomfort.com>; 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@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






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-02-19 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-17 22:17 Unable to run pg_dump from crontab Daniel Ostroff <dano@livingincomfort.com>
2003-02-18 17:29 ` Nick Fankhauser <nickf@ontko.com>
2003-02-19 19:18   ` Robert Treat <xzilla@users.sourceforge.net>

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