How do I exclude a schema , a function and a table from pg_backup
How do I exclude a schema , a function and a table from pg_backup
От:
pavna <daryani.bhawna@gmail.com>
Дата:
I need to exclude a schema, few tables and functions defined in public schema. How do i exclude them from the backup ? I know how to exclude schema and tables. is there a way to exclude 1 or more functions? sudo -u postgres pg_dump -Fc -exclude-schema=schema1 --exclude-table=table1 --disable-triggers -f DB.dump database1 -- Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html
Re: How do I exclude a schema , a function and a table from pg_backup
От:
David Ghedini <david@davidghedini.com>
Дата:
--exclude-schema and --exclude-table for the function, you can place into schema and exclude it.
On Fri, Jul 13, 2018 at 5:31 AM, pavna <daryani.bhawna@gmail.com> wrote:
I need to exclude a schema, few tables and functions defined in public
schema. How do i exclude them from the backup ? I know how to exclude schema
and tables. is there a way to exclude 1 or more functions?
sudo -u postgres pg_dump -Fc -exclude-schema=schema1 --exclude-table=table1
--disable-triggers -f DB.dump database1
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596. html