Re: pg_dump from crontab

Поиск
Список
Период
Сортировка
От Ivo Rossacher
Тема Re: pg_dump from crontab
Дата
Msg-id 200608102100.10084.rossacher@bluewin.ch
обсуждение исходный текст
Ответ на pg_dump from crontab  ("Nirav Parikh" <niravp@alliancerecruitment.com.au>)
Список pgsql-admin
Am Freitag, 4. August 2006 09.20 schrieb Nirav Parikh:
> 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?

Probably the permission at the database which the user has that owns the
crontab file?
Does the command work in a shell of this user?

Best regards
Ivo
>
>
>
>
> Regards,
>
>
>
>
>
> Nirav

В списке pgsql-admin по дате отправления:

Предыдущее
От: Alexander Burbello
Дата:
Сообщение: Find out foreign key
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: pg_dump from crontab