pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
WAL backups
4+ messages / 3 participants
[nested] [flat]

* WAL backups
@ 2008-02-18 09:40  Brian Modra <epailty@googlemail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Brian Modra @ 2008-02-18 09:40 UTC (permalink / raw)
  To: pgsql-admin

Hi,
I've only just started doing WAL backups, and so far am not able to
keep a running backup due to lack of hardware.
Obviously I gzip the WAL fioles, but I'm fast running out of disk
space. I have a second standy server with 200GB disk, where I store
the compressed WAL files, which quickly fills up.
Archiving is difficult simply because the server is in a server room
in Johannesburg 1000km away. We pay them to keep the server powered
up, safe, and connected. They can slip a DVD into it, but that
requires me to book it in advance, and it takes maybe a few hours
before they can do it.

I want to be able to do historical recoveries to any point in time if necessary.

I'm interested to hear from other's about hardware for backup.
I'm thinking of a second dedicated server offsite (near me), with a
large, large disk.

Thanks.
Brian
-- 
Brian Modra   Land line: +27 23 5411 462
Mobile: +27 79 183 8059
6 Jan Louw Str, Prince Albert, 6930
Postal: P.O. Box 2, Prince Albert 6930
South Africa



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

* Re: WAL backups
@ 2008-02-18 16:25  Vladimir Rusinov <vladimir@greenmice.info>
  parent: Brian Modra <epailty@googlemail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Vladimir Rusinov @ 2008-02-18 16:25 UTC (permalink / raw)
  To: Brian Modra <epailty@googlemail.com>; +Cc: pgsql-admin

On 2/18/08, Brian Modra <epailty@googlemail.com> wrote:
>
> I've only just started doing WAL backups, and so far am not able to
> keep a running backup due to lack of hardware.
> Obviously I gzip the WAL fioles, but I'm fast running out of disk
> space. I have a second standy server with 200GB disk, where I store
> the compressed WAL files, which quickly fills up.
> Archiving is difficult simply because the server is in a server room
> in Johannesburg 1000km away. We pay them to keep the server powered
> up, safe, and connected. They can slip a DVD into it, but that
> requires me to book it in advance, and it takes maybe a few hours
> before they can do it.


1. Setup a key-based authentification in ssh

2.
archive_command = "scp %f user@remoteserver:/home/backups/"
restore_command = "scp user@remoteserver:/home/backups/%f %d"

(not sure about %f and %d - too lazy to read manual)

-- 
Vladimir Rusinov
Voronezh, Russia
UNIX Admin @ Murano Software

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

* Re: WAL backups
@ 2008-02-18 18:19  Brian Modra <epailty@googlemail.com>
  parent: Vladimir Rusinov <vladimir@greenmice.info>
  0 siblings, 1 reply; 4+ messages in thread

From: Brian Modra @ 2008-02-18 18:19 UTC (permalink / raw)
  To: Vladimir Rusinov <vladimir@greenmice.info>; +Cc: pgsql-admin

On 18/02/2008, Vladimir Rusinov <vladimir@greenmice.info> wrote:
>
>
> On 2/18/08, Brian Modra <epailty@googlemail.com> wrote:
> > I've only just started doing WAL backups, and so far am not able to
> > keep a running backup due to lack of hardware.
> > Obviously I gzip the WAL fioles, but I'm fast running out of disk
> > space. I have a second standy server with 200GB disk, where I store
> > the compressed WAL files, which quickly fills up.
> > Archiving is difficult simply because the server is in a server room
> > in Johannesburg 1000km away. We pay them to keep the server powered
> > up, safe, and connected. They can slip a DVD into it, but that
> > requires me to book it in advance, and it takes maybe a few hours
> > before they can do it.
>
> 1. Setup a key-based authentification in ssh
>
> 2.
> archive_command = "scp %f user@remoteserver:/home/backups/"
>  restore_command = "scp user@remoteserver:/home/backups/%f %d"
>
> (not sure about %f and %d - too lazy to read manual)

Thats pretty much what I'm doing already but the problem is that I'm quickly
running out of disk space on the remote server.

>
> --
> Vladimir Rusinov
> Voronezh, Russia
> UNIX Admin @ Murano Software


-- 
Brian Modra   Land line: +27 23 5411 462
Mobile: +27 79 183 8059
6 Jan Louw Str, Prince Albert, 6930
Postal: P.O. Box 2, Prince Albert 6930
South Africa



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

* Re: WAL backups
@ 2008-02-18 19:13  Michael Monnerie <michael.monnerie@it-management.at>
  parent: Brian Modra <epailty@googlemail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Monnerie @ 2008-02-18 19:13 UTC (permalink / raw)
  To: pgsql-admin

On Montag, 18. Februar 2008 Brian Modra wrote:
> Thats pretty much what I'm doing already but the problem is that I'm
> quickly running out of disk space on the remote server.

Then buy some disks for it, where's the problem?

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38  500E CE14 91F7 1C12 09B4
// Keyserver: www.keyserver.net                   Key-ID: 1C1209B4

Attachments:

  signature.asc (application/pgp-signature, 193B) download

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


end of thread, other threads:[~2008-02-18 19:13 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-02-18 09:40 WAL backups Brian Modra <epailty@googlemail.com>
2008-02-18 16:25 ` Vladimir Rusinov <vladimir@greenmice.info>
2008-02-18 18:19   ` Brian Modra <epailty@googlemail.com>
2008-02-18 19:13     ` Michael Monnerie <michael.monnerie@it-management.at>

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