Re: Shell Script help for backup

Поиск
Список
Период
Сортировка
От strange@nsk.yi.org
Тема Re: Shell Script help for backup
Дата
Msg-id 20020723150902.A5173@nsk.yi.org
обсуждение исходный текст
Ответ на Re: Shell Script help for backup  (ratlhead@ratlhead.com (ratlhead))
Список pgsql-general
On Mon, Jul 22, 2002 at 03:35:01PM -0700, ratlhead wrote:
> Hi all,
>
> This is how I ended up solving my problem.  Not sure if any of this
> will help you, but here's the scripts I use.  This is what it does...
>
> -Uses PG environmental variables to connect to the PG server
> -Dumps the specified database
> -Checks the backup folder for any backups older than a week and
> deletes those
> -Checks to be sure the backup was successful by checking for a 0k file
> for that day

What's wrong with the solution I sent?

And I doubt the checking for a 0k file will work for you as gzip will
create a 20 byte file even for a 0 byte input (some headers, etc.).

Regards,
Luciano Rocha

--
Consciousness: that annoying time between naps.

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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Stats Collector
Следующее
От: Barry Lind
Дата:
Сообщение: Re: Difficulty updating TEXT fields with JDBC.