Re: conditional backup

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: conditional backup
Дата
Msg-id 4C4038EC0200002500033719@gw.wicourts.gov
обсуждение исходный текст
Ответ на conditional backup  (suhailck <suhailck@gmail.com>)
Ответы secret key for encryption
Список pgsql-admin
suhailck <suhailck@gmail.com> wrote:

> I need to take backup of my postgresql DB, but not all records
> from a few tables.

You can exclude particular tables from a database backup using the
-T option (which can be included multiple times).  You can dump just
the schema for particular tables with the -s and -t switches.  You
can use the \copy command in psql to copy out selected rows using
syntax like:

\copy (select * from C_order where period=2009 and org <> 'A') to
C_order.data

You should be able to wire something together from those pieces.

-Kevin

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Weird sorting order
Следующее
От: Bill MacArthur
Дата:
Сообщение: Re: Weird sorting order