Re: Create Linux Script for PostgreSQL database backup

Поиск
Список
Период
Сортировка
От Lawrence C
Тема Re: Create Linux Script for PostgreSQL database backup
Дата
Msg-id 20040906020956.65180.qmail@web61003.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: Create Linux Script for PostgreSQL database backup  (tim hall <tech@glastonburymusic.org.uk>)
Ответы Re: Create Linux Script for PostgreSQL database backup  (Geoffrey <esoteric@3times25.net>)
Список pgsql-admin
Hi Tim,

How do I setup cronjob for user "postgres" then in
scripts? that what i mean

thanks :)


 --- tim hall <tech@glastonburymusic.org.uk> wrote:
> Lawrence C,
> On Wednesday 01 September 2004 14:20, you went:
> > Anyone good in writing Linux scripting for backup
> > PostgreSQL. I just required a simple scripts only.
> >
> > Normally we do the manual ways as following:
> >
> > In root
> >
> > root# su - postgres
> > bash# pgdumpall >  backup.sql
> > bash# exit
> > root#
> >
> > I'm planning to write script.sh for cronjob but
> not
> > too sure about it. Can anyone contribute the
> scripts
> > for me?
>
> Er ...
>
> #! /usr/bin/bash
> pgdumpall >  backup.sql
>
> I'm being cheeky, but surely if you set that up as a
> cronjob for user
> 'postgres' that would do it? Are your needs more
> complex than this?
>
> cheers
>
> tim hall
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 8: explain analyze is your friend
>

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html

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

Предыдущее
От: reina_ga@hotmail.com (Tony Reina)
Дата:
Сообщение: Re: Selecting HW RAID controller
Следующее
От: Geoffrey
Дата:
Сообщение: Re: Create Linux Script for PostgreSQL database backup