Re: Clone database using rsync?

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: sparikh <sparikh(at)ecotality(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Clone database using rsync?
Date: 2013-11-05 23:33:18
Message-ID: CAMkU=1xQhYPXHNB3b_XH8c1nH8hNLaEx7jD2mnfu75u6=-4AYg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Nov 5, 2013 at 3:11 PM, sparikh <sparikh(at)ecotality(dot)com> wrote:

> I need to clone production database to development server ? What is the
> best
> and simplest way to achieve that? Both my production and development
> postgres versions are same. Will copy over data folder using rsync work?
>

How are you currently backing up your production database? I usually
piggy-back off of that method to set up the clone. It kills two birds with
one stone, you both get your clone for dev, and you exercise your disaster
recovery procedure.

Cheers,

Jeff

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2013-11-05 23:35:39 Re: Clone database using rsync?
Previous Message AI Rumman 2013-11-05 23:30:19 pg_start_backup('label',true) why do I need 2nd parameter?