pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vibhor Kumar <vibhor.aim@gmail.com>
To: A B <gentosaker@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Backup question
Date: Tue, 1 Mar 2011 15:43:22 +0530
Message-ID: <514EC5D0-4703-4073-8AD2-59E0A7E9893F@gmail.com> (raw)
In-Reply-To: <AANLkTi=z9E+yeH=2Wf6xKB3-_67rjzbQNdmYFU2V-NOO@mail.gmail.com>
References: <AANLkTi=z9E+yeH=2Wf6xKB3-_67rjzbQNdmYFU2V-NOO@mail.gmail.com>


On Mar 1, 2011, at 3:20 PM, A B wrote:

> 
> But what would happen if you
> 1. run rsync
> 2. throw server through the window and buy new server
> 3. copy the rsynced data
> 4. start server
> now, what would happen?
> I guess the server would think: uh-oh, it has crashed, I'll try to fix it.

This will give you Inconsisten Backup and PG will try to recover the database

> I understand that you will loose data, but will it be able to get
> database in shape and running?
May be Or may not be. I have seen scenario's where people had to use pg_resetxlog 

> And to reduce the amount of lost data,  is there any clever "sync"
> command I can run before step 1 to write more stuff to disk?

Have a look of Hot/Online Backup.
http://www.postgresql.org/docs/8.4/interactive/continuous-archiving.html

Thanks & Regards,
Vibhor


view thread (4+ messages)

Message-ID: <514EC5D0-4703-4073-8AD2-59E0A7E9893F@gmail.com>
Permalink:  ../514EC5D0-4703-4073-8AD2-59E0A7E9893F@gmail.com/
Also on:    postgresql.org/message-id/514EC5D0-4703-4073-8AD2-59E0A7E9893F@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: vibhor.aim@gmail.com, gentosaker@gmail.com
  Subject: Re: Backup question
  In-Reply-To: <514EC5D0-4703-4073-8AD2-59E0A7E9893F@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