Re: Clone database using rsync? - Mailing list pgsql-general

From Jeff Janes
Subject Re: Clone database using rsync?
Date
Msg-id CAMkU=1xQhYPXHNB3b_XH8c1nH8hNLaEx7jD2mnfu75u6=-4AYg@mail.gmail.com
Whole thread Raw
In response to Clone database using rsync?  (sparikh <sparikh@ecotality.com>)
Responses Re: Clone database using rsync?
List pgsql-general
On Tue, Nov 5, 2013 at 3:11 PM, sparikh <sparikh@ecotality.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

pgsql-general by date:

Previous
From: AI Rumman
Date:
Subject: pg_start_backup('label',true) why do I need 2nd parameter?
Next
From: John R Pierce
Date:
Subject: Re: Clone database using rsync?