From: pavna <daryani.bhawna@gmail.com>
To: pgsql-admin@postgresql.org
Subject: How do I exclude a schema , a function and a table from pg_backup
Date: Thu, 12 Jul 2018 19:31:06 -0700 (MST)
Message-ID: <1531449066819-0.post@n3.nabble.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: daryani.bhawna@gmail.com
Subject: Re: How do I exclude a schema , a function and a table from pg_backup
In-Reply-To: <1531449066819-0.post@n3.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox