can't run pg_dump in sh script using crontab - Mailing list pgsql-general

From Kogotkov, Vyacheslav
Subject can't run pg_dump in sh script using crontab
Date
Msg-id D15F32DE6D70D411814400508B4492ED55EC5C@SVRSPBEXCH01
Whole thread Raw
List pgsql-general
      Dear colleagues,

      I have a sh-script which run pg_dump by hand successfully. But
I have no results when I run this script using crontab. Unfortunately, I'm
new for Postgres and even have no idea, what the matter. I can't get
any error log.
      Please, help me.
      Here is my sh-script:
#!/bin/sh

PG_BIN=/ora/pgsql/bin
BACKUP_DEST=/ora/home/FOR_POSTGRES/backup/dump

$PG_BIN/pg_dump -f $BACKUP_DEST/`date +%d%m%Y`_cspb.dmp dbname

     Thanks,
     Slava


pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: SQL function problem in 7.1?
Next
From: Steven Saner
Date:
Subject: ODBC with Visio