Re: Backup schema without data

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Atul Kumar <akumar14871(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Backup schema without data
Date: 2023-04-07 00:54:11
Message-ID: 2839491.1680828851@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Atul Kumar <akumar14871(at)gmail(dot)com> writes:
> Please help me in telling that how I can take the backup of one single
> schema without its data using pg_dump utility ?

Doesn't "pg_dump -s -n <schema> ..." do what you want?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brent Wood 2023-04-07 00:59:12 Re: Backup schema without data
Previous Message Michael Loftis 2023-04-07 00:53:29 Re: Backup schema without data