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 17:06:42
Message-ID: CAMkU=1w8CA55=EQ0V_myrk7ZcmgMDKd5dkDSJ7n7MJd39vUhOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

> On 10/09/2017 11:33 AM, Jeff Janes wrote:
>
> On Mon, Oct 9, 2017 at 6:40 AM, Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net> wrote:
>
>> Hi,
>>
>> v8.4.20
>>
>> This is what the current backup script uses:
>>
>> /usr/bin/psql -U postgres -c "SELECT pg_start_backup('Incrementalba
>> ckup',true);"
>> cp -r /var/lib/pgsql/data/* $dumpdir/data/
>> /usr/bin/psql -U postgres template1 -c "SELECT pg_stop_backup();"
>>
>>
> That's fine, as long as you have a wal archive. Although I don't know
> what is "Incremental" about it.
>
>
> From reading the docs, that field is just a label with no intrinsic
> meaning.
>

Its purpose is to communicate with you. If the person who implemented my
backup solution is attempting to communicate with me, and I have no idea
what that communication means, then that makes me quite nervous.

Cheers,

Jeff

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Darren Douglas 2017-10-09 17:17:58 Re: Using cp to back up a database?
Previous Message Jeff Janes 2017-10-09 16:55:31 Re: Using cp to back up a database?