pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vladimir Rusinov <vladimir@greenmice.info>
To: Brian Modra <epailty@googlemail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: WAL backups
Date: Mon, 18 Feb 2008 19:25:44 +0300
Message-ID: <f6fdfb550802180825nebc037n5c22fa5ac5f21923@mail.gmail.com> (raw)
In-Reply-To: <5a9699850802180140ifba5ddeo29b652a87b793e59@mail.gmail.com>
References: <5a9699850802180140ifba5ddeo29b652a87b793e59@mail.gmail.com>

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

view thread (4+ messages)  latest in thread

Message-ID: <f6fdfb550802180825nebc037n5c22fa5ac5f21923@mail.gmail.com>
Permalink:  ../f6fdfb550802180825nebc037n5c22fa5ac5f21923@mail.gmail.com/
Also on:    postgresql.org/message-id/f6fdfb550802180825nebc037n5c22fa5ac5f21923@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: vladimir@greenmice.info, epailty@googlemail.com
  Subject: Re: WAL backups
  In-Reply-To: <f6fdfb550802180825nebc037n5c22fa5ac5f21923@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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