Re: WAL backups

From: "Vladimir Rusinov" <vladimir(at)greenmice(dot)info>
To: "Brian Modra" <epailty(at)googlemail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: WAL backups
Date: 2008-02-18 16:25:44
Message-ID: f6fdfb550802180825nebc037n5c22fa5ac5f21923@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 2/18/08, Brian Modra <epailty(at)googlemail(dot)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(at)remoteserver:/home/backups/"
restore_command = "scp user(at)remoteserver:/home/backups/%f %d"

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

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message dguevara 2008-02-18 16:29:51 Trigger from a function
Previous Message Andrew Dunstan 2008-02-18 14:52:46 Re: [HACKERS] Error"Failed to run initdb: 128!"