pg_dump from crontab

From: "Nirav Parikh" <niravp(at)alliancerecruitment(dot)com(dot)au>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: pg_dump from crontab
Date: 2006-08-04 07:20:57
Message-ID: 221385EC3F18A44DB0925467A1D2395F568D6D@exsrv3.workskillsprofessionals.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I am having problem backing up database from crontab, I got following
lines in crontab file


0 20 * * 5 /usr/pgsql/bin/pg_dump -F c database >
/usr/backup/friDATE4.pgdump
0 20 * * 4 pg_dump -F c database > /usr/backup/thurDATE06-3.pgdump

none of them works, I have given full permission to everyone in
/usr/backup directory

it creates the dump file but with 0 size - empty!

I have other commands in crontab which executes normally, also pg_dump
command works through command line.

does anyone what else I can check?


Regards,

Nirav

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Nigel Bishop 2006-08-04 13:18:42 Question about Shared memory and PG
Previous Message Benjamin Krajmalnik 2006-08-04 04:05:30 Re: File system backup question