Re: Using cp to back up a database?

From: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Using cp to back up a database?
Date: 2017-10-09 18:13:49
Message-ID: 890bb735-41a4-14df-8ee7-f02478510a7a@cox.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/09/2017 01:02 PM, Scott Mead wrote:
>
>
> On Mon, Oct 9, 2017 at 1:19 PM, Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net
> <mailto:ron(dot)l(dot)johnson(at)cox(dot)net>> wrote:
>
> Maybe my original question wasn't clear, so I'll try again: is it safe
> to do a physical using cp (as opposed to rsync)?
>
>
> Yes -- however*you must configure WAL archiving* first.  If not, no backup
> tool, cp, rsync, etc... will provide a good backup.
>
> Oh, and BTW -- The obligatory: You are on an ancient, EOL version of PG. 
> Upgrade.
>
> Make sure that these are set:
> - archive_mode
> - archive_command
>
>
> Then, on when you restore the backup, you need to create a recovery.conf
> and configure
> - restore_command
>
> https://www.postgresql.org/docs/8.4/static/continuous-archiving.html

This is good to know.  Thanks.

--
World Peace Through Nuclear Pacification

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Igal @ Lucee.org 2017-10-09 18:17:39 Re: Permissions for Web App
Previous Message Scott Mead 2017-10-09 18:02:12 Re: Using cp to back up a database?