pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gnanakumar <gnanam@zoniac.com>
To: 'Samuel Stearns' <SStearns@internode.com.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: PITR Recovery Question
Date: Tue, 8 Jun 2010 10:59:17 +0530
Message-ID: <000201cb06cb$8b068860$a1139920$@com> (raw)
In-Reply-To: <68B59BEDCD36854AADBDF17E91B2937A01A5937796@EXCHMAIL.staff.internode.com.au>
References: <001201cb0321$df429d40$9dc7d7c0$@com>
	<00ca01cb03dc$a9ffe780$fdffb680$@com>
	<F993CF5B-1C46-4936-99AB-7ED9AAF7B3F8@phlo.org>
	<00cc01cb047d$82079830$8616c890$@com>
	<7B83DD06-04B8-4BE5-8573-3CDD48568F1D@phlo.org>
	<68B59BEDCD36854AADBDF17E91B2937A01A5937796@EXCHMAIL.staff.internode.com.au>

Hi Sam,

Thank your sharing this script.

> Here's a script to make your backup and rsync it to a remote destination:

> #!/bin/bash
> echo "checkpoint"
> echo "CHECKPOINT;" | /local/pkg/bin/psql template1
> echo "start backup"
> echo "SELECT pg_start_backup('cisoradr:/cis/pgsql/katana7/backup');" |
/local/pkg/bin/psql template1
> echo "rsync"
> /local/pkg/bin/rsync --delete -azxH /local/app/postgres/data
pgsql@cisoradr-ext:/cis/pgsql/katana7/backup/.
> echo "Stop backup"
> echo "SELECT pg_stop_backup();" | /local/pkg/bin/psql template1





view thread (15+ messages)

Message-ID: <000201cb06cb$8b068860$a1139920$@com>
Permalink:  ../000201cb06cb$8b068860$a1139920$@com/
Also on:    postgresql.org/message-id/000201cb06cb$8b068860$a1139920$@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: gnanam@zoniac.com, SStearns@internode.com.au
  Subject: Re: PITR Recovery Question
  In-Reply-To: <000201cb06cb$8b068860$a1139920$@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