Re: Using cp to back up a database?

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Using cp to back up a database?
Date: 2017-10-09 16:55:31
Message-ID: CAMkU=1zvrR_HHNYbnBQQTVQP=YHoxh08M-V04aXiJwjCwZNfmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 9, 2017 at 7:15 AM, Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net> wrote:

>
> Sure I want a consistent database. Why doesn't?
>
> But log shipping requires you to rsync/var/lib/pgsql/data to the remote
> server, and that's consistent, so why wouldn't rsync to a local directory
> also be consistent?
>

But it isn't consistent by itself. That is why the log shipping is
required (or an equivalent method of keeping the necessary logs around), to
fix up the consistency.

Cheers,

Jeff

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2017-10-09 17:06:42 Re: Using cp to back up a database?
Previous Message Darren Douglas 2017-10-09 16:49:12 Re: Using cp to back up a database?