[GENERAL] Using cp to back up a database?

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема [GENERAL] Using cp to back up a database?
Дата
Msg-id 356ee3ba-e1b6-d0e5-0ae6-1e66a6df3252@cox.net
обсуждение исходный текст
Ответы Re: [GENERAL] Using cp to back up a database?  (Larry Rosenman <ler@lerctr.org>)
Re: [GENERAL] Using cp to back up a database?  (Jeff Janes <jeff.janes@gmail.com>)
Re: [GENERAL] Using cp to back up a database?  (Darren Douglas <darren@synsesolutions.com>)
Список pgsql-general
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();"


Should it use rsync or pg_dump instead?

Thanks

-- 
World Peace Through Nuclear Pacification

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

Предыдущее
От: Durumdara
Дата:
Сообщение: [GENERAL] Error: "cached plan must not change result type"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Equivalence Classes when using IN