Re: Crontab problem with backup

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kirti <kirti(at)UNSWalumni(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Crontab problem with backup
Date: 2006-04-15 04:18:59
Message-ID: 12883.1145074739@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Kirti <kirti(at)UNSWalumni(dot)com> writes:
> I was trying to backup a database called "old_db".The following lines
> inserted into either root crontab file or postgres crontab file failed
> either to produce any output or created an empty file caled
> "old_db_hr9.tgz" in the /backups/hour/ directory..

> 0 9 * * 1-5 postgres pg_dump --format=t old_db >
> /backups/hour/old_db_hr9.tgz

> 0 18 * * 5 postgres pg_dump --format=t old_db >
> /backups/week/old_db_friday.tgz

Are you sure you've got the crontab file format correct? On my machine,
at least, there's no userid column.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Bruce Momjian 2006-04-15 04:28:47 Re: Crontab problem with backup
Previous Message Alan Hodgson 2006-04-15 03:24:28 Re: Crontab problem with backup