pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Brannen <kevinb@nurseamerica.net>
To: pgsql-admin@postgresql.org
Subject: Re: pg_dumpall in crontab doesn't work
Date: Tue, 02 Jul 2002 09:13:07 -0500
Message-ID: <3D21B4F3.3040404@nurseamerica.net> (raw)
References: <F779B05379CAD2118BD20090273017BF03E79C7D@DC1>

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






view thread (8+ messages)  latest in thread

Message-ID: <3D21B4F3.3040404@nurseamerica.net>
Permalink:  ../3D21B4F3.3040404@nurseamerica.net/
Also on:    postgresql.org/message-id/3D21B4F3.3040404@nurseamerica.net

 · 

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: kevinb@nurseamerica.net
  Subject: Re: pg_dumpall in crontab doesn't work
  In-Reply-To: <3D21B4F3.3040404@nurseamerica.net>
  References: <F779B05379CAD2118BD20090273017BF03E79C7D@DC1> <3D21B4F3.3040404@nurseamerica.net>

* 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