Re: [GENERAL] Using cp to back up a database? - Mailing list pgsql-general

From Jeff Janes
Subject Re: [GENERAL] Using cp to back up a database?
Date
Msg-id CAMkU=1zvrR_HHNYbnBQQTVQP=YHoxh08M-V04aXiJwjCwZNfmw@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Using cp to back up a database?  (Ron Johnson <ron.l.johnson@cox.net>)
List pgsql-general
On Mon, Oct 9, 2017 at 7:15 AM, Ron Johnson <ron.l.johnson@cox.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

pgsql-general by date:

Previous
From: Darren Douglas
Date:
Subject: Re: [GENERAL] Using cp to back up a database?
Next
From: Jeff Janes
Date:
Subject: Re: [GENERAL] Using cp to back up a database?