Re: postgres backup question - Mailing list pgsql-general

From Adrian Klaver
Subject Re: postgres backup question
Date
Msg-id 65d635f3-3d8f-713b-9723-5bc9e875b059@aklaver.com
Whole thread Raw
In response to postgres backup question  (Julie Nishimura <juliezain@hotmail.com>)
List pgsql-general
On 11/19/19 4:06 PM, Julie Nishimura wrote:
> Hello,
> What is the best way to dump/restore the entire database except couple 
> of largest tables, what is the best way to do it on PostgreSQL 9.4.1 on 
> x86_64-unknown-linux-gnu?

https://www.postgresql.org/docs/11/app-pgdump.html

-T table
--exclude-table=table

     Do not dump any tables matching the table pattern. The pattern is 
interpreted according to the same rules as for -t. -T can be given more 
than once to exclude tables matching any of several patterns.

     When both -t and -T are given, the behavior is to dump just the 
tables that match at least one -t switch but no -T switches. If -T 
appears without -t, then tables matching -T are excluded from what is 
otherwise a normal dump.


> 
> Thank you


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Julie Nishimura
Date:
Subject: postgres backup question
Next
From: stan
Date:
Subject: mysysconf ?