From dano@livingincomfort.com Mon Feb 17 22:16:26 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A786F475957 for ; Mon, 17 Feb 2003 17:16:26 -0500 (EST) Received: from jwilbur.tempdomainname.com (jwilbur.tempdomainname.com [161.58.160.103]) by postgresql.org (Postfix) with ESMTP id E6EF7475925 for ; Mon, 17 Feb 2003 17:16:25 -0500 (EST) Received: from oats ([212.199.120.211]) by jwilbur.tempdomainname.com (8.12.6) id h1HMGGrV097406 for ; Mon, 17 Feb 2003 15:16:17 -0700 (MST) Message-ID: <001201c2d6d2$6b712a90$d378c7d4@oats> From: "Daniel Ostroff" To: Subject: Unable to run pg_dump from crontab Date: Tue, 18 Feb 2003 00:17:53 +0200 Organization: Living In Comfort MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01C2D6E3.2DF338F0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/283 X-Sequence-Number: 7481 This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C2D6E3.2DF338F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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/bac= kup/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 ------=_NextPart_000_000F_01C2D6E3.2DF338F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm trying to run a pg_dump under Crontab = (FreeBSD=20 is the OS).
 
The command line is:
 
/usr/home/jwilbur/usr/local/bin/pg_dump Sh= opCart=20 > ~/usr/local/shopcart/backup/ShopCart.pgdump
 
I am getting the following message:=
 
pg_dump: [archiver (db)] connection to database "ShopCart" failed: FAT= AL=20 1:  user "adam" does not exist
What can I do to correct this?
 
Thanks,
 
/Dan
------=_NextPart_000_000F_01C2D6E3.2DF338F0-- From nickf@ontko.com Tue Feb 18 17:31:50 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 281864759AF for ; Tue, 18 Feb 2003 12:31:50 -0500 (EST) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id 94E1D475957 for ; Tue, 18 Feb 2003 12:31:49 -0500 (EST) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.6/8.12.6/Debian-6Woody) with SMTP id h1IHVmpq016023; Tue, 18 Feb 2003 12:31:49 -0500 Reply-To: From: "Nick Fankhauser" To: "Daniel Ostroff" , Subject: Re: Unable to run pg_dump from crontab Date: Tue, 18 Feb 2003 12:29:22 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <001201c2d6d2$6b712a90$d378c7d4@oats> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/291 X-Sequence-Number: 7489 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 From xzilla@users.sourceforge.net Wed Feb 19 20:02:43 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2F495475F55 for ; Wed, 19 Feb 2003 15:02:43 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 25145-10 for ; Wed, 19 Feb 2003 15:02:32 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 41262475D84 for ; Wed, 19 Feb 2003 14:19:12 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h1JJji6P002482; Wed, 19 Feb 2003 14:45:45 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h1JKIjp32022; Wed, 19 Feb 2003 15:18:47 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id CWVL1WZS; Wed, 19 Feb 2003 14:18:33 -0500 Subject: Re: Unable to run pg_dump from crontab From: Robert Treat To: nickf@ontko.com Cc: Daniel Ostroff , pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 19 Feb 2003 14:18:45 -0500 Message-Id: <1045682325.12931.1031.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/321 X-Sequence-Number: 7519 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