pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Automation/scheduling of Backup stratetgy
6+ messages / 5 participants
[nested] [flat]

* Automation/scheduling of Backup stratetgy
@ 2000-10-19 09:21  Corne Scheepers - MWeb <CScheepers@mweb.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Corne Scheepers - MWeb @ 2000-10-19 09:21 UTC (permalink / raw)
  To: pgsql-admin

Is it posible to schedule / automate a backup task and functions to execute
at a pre-defined time at a pre-defined recurrence rate?


Cornè Scheepers
SQL DBA/Developer
Mindport BIS
021 9150327




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Automation/scheduling of Backup stratetgy
@ 2000-10-19 13:04  Michel Decima <michel.decima@rd.francetelecom.fr>
  0 siblings, 0 replies; 6+ messages in thread

From: Michel Decima @ 2000-10-19 13:04 UTC (permalink / raw)
  To: pgsql-admin; CScheepers@mweb.com

>Is it posible to schedule / automate a backup task and functions to execute
>at a pre-defined time at a pre-defined recurrence rate?

yes, using the cron daemon and the commands pg_dump or pg_dumpall.

The following entry in the postgres user crontab will backup the 
database every day at 03:01 AM in /dev/null (very usefull)

1 3 * * * /usr/local/pgsql/bin/pg_dumpall > /dev/null

just look at
man cron
man crontab
man pg_dumpall

MD.
 



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Automation/scheduling of Backup stratetgy
@ 2000-10-19 15:40  Matthew H. North <ctsmhn@cts.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Matthew H. North @ 2000-10-19 15:40 UTC (permalink / raw)
  To: pgsql-admin


Any word on when (if?) live/hot backup will be available?

Matthew H. North
Software Engineer
CTSnet Internet Services
t (858) 637-3600
f (858) 637-3630
mailto:ctsmhn@cts.com

-----Original Message-----
From: pgsql-admin-owner@hub.org [mailto:pgsql-admin-owner@hub.org]On
Behalf Of Michel Decima
Sent: Thursday, October 19, 2000 6:04 AM
To: pgsql-admin@postgresql.org; CScheepers@mweb.com
Subject: Re: [ADMIN] Automation/scheduling of Backup stratetgy


>Is it posible to schedule / automate a backup task and functions to execute
>at a pre-defined time at a pre-defined recurrence rate?

yes, using the cron daemon and the commands pg_dump or pg_dumpall.

The following entry in the postgres user crontab will backup the
database every day at 03:01 AM in /dev/null (very usefull)

1 3 * * * /usr/local/pgsql/bin/pg_dumpall > /dev/null

just look at
man cron
man crontab
man pg_dumpall

MD.





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* RE: Automation/scheduling of Backup stratetgy
@ 2000-10-19 16:31  Trewern, Ben <Ben.Trewern@mowlem.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Trewern, Ben @ 2000-10-19 16:31 UTC (permalink / raw)
  To: pgsql-admin

It is already built in.  Use pg_dump or pg_dumpall when online. Only problem
is OIDs and large objects.  pg_dump -o to keep OIDs not sure about large
objects.

Hope this is what you mean by live/hot backup.

Ben

> -----Original Message-----
> From: Matthew H. North [mailto:ctsmhn@cts.com]
> Sent: 19 October 2000 16:41
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] Automation/scheduling of Backup stratetgy
> 
> 
> 
> Any word on when (if?) live/hot backup will be available?
> 
> Matthew H. North
> Software Engineer
> CTSnet Internet Services
> t (858) 637-3600
> f (858) 637-3630
> mailto:ctsmhn@cts.com
> 
> -----Original Message-----
> From: pgsql-admin-owner@hub.org [mailto:pgsql-admin-owner@hub.org]On
> Behalf Of Michel Decima
> Sent: Thursday, October 19, 2000 6:04 AM
> To: pgsql-admin@postgresql.org; CScheepers@mweb.com
> Subject: Re: [ADMIN] Automation/scheduling of Backup stratetgy
> 
> 
> >Is it posible to schedule / automate a backup task and 
> functions to execute
> >at a pre-defined time at a pre-defined recurrence rate?
> 
> yes, using the cron daemon and the commands pg_dump or pg_dumpall.
> 
> The following entry in the postgres user crontab will backup the
> database every day at 03:01 AM in /dev/null (very usefull)
> 
> 1 3 * * * /usr/local/pgsql/bin/pg_dumpall > /dev/null
> 
> just look at
> man cron
> man crontab
> man pg_dumpall
> 
> MD.
> 
> 

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* RE: Automation/scheduling of Backup stratetgy
@ 2000-10-19 18:40  Matthew H. North <ctsmhn@cts.com>
  parent: Trewern, Ben <Ben.Trewern@mowlem.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Matthew H. North @ 2000-10-19 18:40 UTC (permalink / raw)
  To: pgsql-admin; pgsql-hackers@postgresql.org


Let me clarify:

By 'hot backup' I mean some kind of method we can use to keep a live mirror
of a PostgreSQL database as it's being updated.  As it is, the pg_dump
method has quite a large granularity - we currently have a cron job that
runs pg_dumpall once per day, in the early morning.  This means that if we
had to revert to one of these daily backups, we have the potential of a
day's worth of lost data....  Not good.

We would like to be able to backup the database AS it's being worked on so
that if the primary db server drops dead, we have a backup that's pretty
much up-to-date as of the time of the crash.

Again, any word from the developers on when we might be able to expect this?

Matthew H. North
Software Engineer
CTSnet Internet Services
t (858) 637-3600
f (858) 637-3630
mailto:ctsmhn@cts.com

-----Original Message-----
From: pgsql-admin-owner@hub.org [mailto:pgsql-admin-owner@hub.org]On Behalf
Of Trewern, Ben
Sent: Thursday, October 19, 2000 9:32 AM
To: pgsql-admin@postgresql.org
Subject: RE: [ADMIN] Automation/scheduling of Backup stratetgy


It is already built in.  Use pg_dump or pg_dumpall when online. Only problem
is OIDs and large objects.  pg_dump -o to keep OIDs not sure about large
objects.
Hope this is what you mean by live/hot backup.
Ben
> -----Original Message-----
> From: Matthew H. North [mailto:ctsmhn@cts.com]
> Sent: 19 October 2000 16:41
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] Automation/scheduling of Backup stratetgy
>
>
>
> Any word on when (if?) live/hot backup will be available?
>
> Matthew H. North
> Software Engineer
> CTSnet Internet Services
> t (858) 637-3600
> f (858) 637-3630
> mailto:ctsmhn@cts.com
>
> -----Original Message-----
> From: pgsql-admin-owner@hub.org [mailto:pgsql-admin-owner@hub.org]On
> Behalf Of Michel Decima
> Sent: Thursday, October 19, 2000 6:04 AM
> To: pgsql-admin@postgresql.org; CScheepers@mweb.com
> Subject: Re: [ADMIN] Automation/scheduling of Backup stratetgy
>
>
> >Is it posible to schedule / automate a backup task and
> functions to execute
> >at a pre-defined time at a pre-defined recurrence rate?
>
> yes, using the cron daemon and the commands pg_dump or pg_dumpall.
>
> The following entry in the postgres user crontab will backup the
> database every day at 03:01 AM in /dev/null (very usefull)
>
> 1 3 * * * /usr/local/pgsql/bin/pg_dumpall > /dev/null
>
> just look at
> man cron
> man crontab
> man pg_dumpall
>
> MD.
>
>




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* RE: Automation/scheduling of Backup stratetgy
@ 2000-10-20 14:18  Michael Ansley <Michael.Ansley@intec-telecom-systems.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Ansley @ 2000-10-20 14:18 UTC (permalink / raw)
  To: 'Matthew H. North' <ctsmhn@cts.com>; pgsql-admin

You mean WAL.  When your server goes down, you can restore from the last
backup, and then reapply the WAL to recreate all transactions that were in
committed between the backup and the crash.  WAL is due for 7.1, I believe.

Cheers...

MikeA


>>   -----Original Message-----
>>   From: Matthew H. North [mailto:ctsmhn@cts.com]
>>   Sent: 19 October 2000 19:40
>>   To: pgsql-admin@postgresql.org; pgsql-hackers@postgresql.org
>>   Subject: RE: [ADMIN] Automation/scheduling of Backup stratetgy
>>   
>>   
>>   
>>   Let me clarify:
>>   
>>   By 'hot backup' I mean some kind of method we can use to 
>>   keep a live mirror
>>   of a PostgreSQL database as it's being updated.  As it is, 
>>   the pg_dump
>>   method has quite a large granularity - we currently have a 
>>   cron job that
>>   runs pg_dumpall once per day, in the early morning.  This 
>>   means that if we
>>   had to revert to one of these daily backups, we have the 
>>   potential of a
>>   day's worth of lost data....  Not good.
>>   
>>   We would like to be able to backup the database AS it's 
>>   being worked on so
>>   that if the primary db server drops dead, we have a backup 
>>   that's pretty
>>   much up-to-date as of the time of the crash.
>>   
>>   Again, any word from the developers on when we might be 
>>   able to expect this?
>>   
>>   Matthew H. North
>>   Software Engineer
>>   CTSnet Internet Services
>>   t (858) 637-3600
>>   f (858) 637-3630
>>   mailto:ctsmhn@cts.com
>>   
>>   -----Original Message-----
>>   From: pgsql-admin-owner@hub.org 
>>   [mailto:pgsql-admin-owner@hub.org]On Behalf
>>   Of Trewern, Ben
>>   Sent: Thursday, October 19, 2000 9:32 AM
>>   To: pgsql-admin@postgresql.org
>>   Subject: RE: [ADMIN] Automation/scheduling of Backup stratetgy
>>   
>>   
>>   It is already built in.  Use pg_dump or pg_dumpall when 
>>   online. Only problem
>>   is OIDs and large objects.  pg_dump -o to keep OIDs not 
>>   sure about large
>>   objects.
>>   Hope this is what you mean by live/hot backup.
>>   Ben
>>   > -----Original Message-----
>>   > From: Matthew H. North [mailto:ctsmhn@cts.com]
>>   > Sent: 19 October 2000 16:41
>>   > To: pgsql-admin@postgresql.org
>>   > Subject: [ADMIN] Automation/scheduling of Backup stratetgy
>>   >
>>   >
>>   >
>>   > Any word on when (if?) live/hot backup will be available?
>>   >
>>   > Matthew H. North
>>   > Software Engineer
>>   > CTSnet Internet Services
>>   > t (858) 637-3600
>>   > f (858) 637-3630
>>   > mailto:ctsmhn@cts.com
>>   >
>>   > -----Original Message-----
>>   > From: pgsql-admin-owner@hub.org 
>>   [mailto:pgsql-admin-owner@hub.org]On
>>   > Behalf Of Michel Decima
>>   > Sent: Thursday, October 19, 2000 6:04 AM
>>   > To: pgsql-admin@postgresql.org; CScheepers@mweb.com
>>   > Subject: Re: [ADMIN] Automation/scheduling of Backup stratetgy
>>   >
>>   >
>>   > >Is it posible to schedule / automate a backup task and
>>   > functions to execute
>>   > >at a pre-defined time at a pre-defined recurrence rate?
>>   >
>>   > yes, using the cron daemon and the commands pg_dump or 
>>   pg_dumpall.
>>   >
>>   > The following entry in the postgres user crontab will backup the
>>   > database every day at 03:01 AM in /dev/null (very usefull)
>>   >
>>   > 1 3 * * * /usr/local/pgsql/bin/pg_dumpall > /dev/null
>>   >
>>   > just look at
>>   > man cron
>>   > man crontab
>>   > man pg_dumpall
>>   >
>>   > MD.
>>   >
>>   >
>>   

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2000-10-20 14:18 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-10-19 09:21 Automation/scheduling of Backup stratetgy Corne Scheepers - MWeb <CScheepers@mweb.com>
2000-10-19 13:04 Re: Automation/scheduling of Backup stratetgy Michel Decima <michel.decima@rd.francetelecom.fr>
2000-10-19 15:40 Automation/scheduling of Backup stratetgy Matthew H. North <ctsmhn@cts.com>
2000-10-19 16:31 RE: Automation/scheduling of Backup stratetgy Trewern, Ben <Ben.Trewern@mowlem.com>
2000-10-19 18:40 ` Matthew H. North <ctsmhn@cts.com>
2000-10-20 14:18 RE: Automation/scheduling of Backup stratetgy Michael Ansley <Michael.Ansley@intec-telecom-systems.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox