Re: pg_dump excluding tables content but not table schema
В списке pgsql-general по дате отправления:
| От | Dimitri Fontaine |
|---|---|
| Тема | Re: pg_dump excluding tables content but not table schema |
| Дата | |
| Msg-id | m2skaoyeed.fsf@hi-media.com обсуждение исходный текст |
| Ответ на | Re: pg_dump excluding tables content but not table schema (Ivan Sergio Borgonovo <mail@webthatworks.it>) |
| Список | pgsql-general |
Ivan Sergio Borgonovo <mail@webthatworks.it> writes: > It seems that you have to actually restore the 2 backup separately. > > pg_restore -1 -d mydb < nearly_full.bak > pg_restore -1 -d mydb < schema_only.bak > > I can't think of any other way to restore both in one transaction > unless I backup in plain text. But that should have other drawback. > > Any hint? In general what I do is backup it all then filter at restore time, editing the restore catalog (see pg_restore options -l and -L). Incidentally I've written code for automating this for me, that's called pg_staging and is available at github and already is in debian (I miss a source release so that RPM will follow): http://github.com/dimitri/pg_staging Regards, -- dim
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера