Re: [GENERAL] Using cp to back up a database?

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: [GENERAL] Using cp to back up a database?
Дата
Msg-id 835f7baa-8517-eb4e-b9ee-27170adea759@cox.net
обсуждение исходный текст
Ответ на [GENERAL] Using cp to back up a database?  (Ron Johnson <ron.l.johnson@cox.net>)
Ответы Re: [GENERAL] Using cp to back up a database?  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-general
On 10/09/2017 11:33 AM, Jeff Janes wrote:
On Mon, Oct 9, 2017 at 6:40 AM, Ron Johnson <ron.l.johnson@cox.net> wrote:
Hi,

v8.4.20

This is what the current backup script uses:

/usr/bin/psql -U postgres -c "SELECT pg_start_backup('Incrementalbackup',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.


-- 
World Peace Through Nuclear Pacification

В списке pgsql-general по дате отправления:

Предыдущее
От: mj0nes
Дата:
Сообщение: [GENERAL] pg_start/stop_backup naming conventions
Следующее
От: "Igal @ Lucee.org"
Дата:
Сообщение: [GENERAL] Permissions for Web App