Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id D12C44761AB for ; Tue, 2 Jul 2002 10:42:46 -0400 (EDT) Mailbox-Line: From kevinb@nurseamerica.net Tue Jul 2 10:42:46 2002 Received: from dilbert.nurseamerica.net (unknown [207.53.237.114]) by postgresql.org (Postfix) with ESMTP id 42F70475DF4 for ; Tue, 2 Jul 2002 10:13:04 -0400 (EDT) Received: from nurseamerica.net (archimedes.myrdin.net [206.176.158.41]) by dilbert.nurseamerica.net (8.11.6/8.11.6) with ESMTP id g62ED8j14523 for ; Tue, 2 Jul 2002 09:13:08 -0500 Message-ID: <3D21B4F3.3040404@nurseamerica.net> Date: Tue, 02 Jul 2002 09:13:07 -0500 From: Kevin Brannen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: pg_dumpall in crontab doesn't work References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.5 required=5.0 tests=RCVD_IN_RFCI version=2.30 X-Spam-Level: X-Archive-Number: 200207/28 X-Sequence-Number: 4714 Guthrie, John wrote: > keep in mind that cronjobs don't get your login environment, so things that > work in interactive mode often fail in cron unless you make sure to set up > the environment there too. That is very important to remember! First try adding "< /dev/null" to the command. If that doesn't work, you can also try adding ". $HOME/.profile ; " to the command. HTH, Kevin >>>05 22 * * 1-5 postgres /usr/bin/pg_dumpall -D > >>>/disks/postgres/db.pg_dumpall