public inbox for [email protected]  
help / color / mirror / Atom feed
Re: To take backup of Postgresql Database without large objects
2+ messages / 2 participants
[nested] [flat]

* Re: To take backup of Postgresql Database without large objects
@ 2025-04-11 12:55 [email protected] <[email protected]>
  2025-04-11 13:29 ` Re: To take backup of Postgresql Database without large objects Ron Johnson <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: [email protected] @ 2025-04-11 12:55 UTC (permalink / raw)
  To: pgsql-general

Hello,
Using PostgreSQL 15.1, compiled by Visual C++ build 1914, 64-bit in Windows 10.
Trying to take backup of a database, using pg_dump, where one table contains bytea datatype, which I don't want to include in the backup.
My command was:"E:\DBBackup\bin\pg_dump.exe"  -h 192.168.1.1 -p 5432 -U <username> --no-blobs -F c -v -f "E:\DBBackup\demo6_110420251637.bak" demo6 

the backup includes the bytea field also.  
I tried with "E:\DBBackup\bin\pg_dump.exe"  -h 192.168.1.1 -p 5432 -U <username> -B -F c -v -f "E:\DBBackup\demo6_110420251637.bak" demo6 

also, which also included the bytea field.
What wrong I'm doing?  Couldn't figure it out.   Any help is appreciated.
Happiness Always
BKR Sivaprakash


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: To take backup of Postgresql Database without large objects
  2025-04-11 12:55 Re: To take backup of Postgresql Database without large objects [email protected] <[email protected]>
@ 2025-04-11 13:29 ` Ron Johnson <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Ron Johnson @ 2025-04-11 13:29 UTC (permalink / raw)
  To: pgsql-general

On Fri, Apr 11, 2025 at 8:56 AM [email protected] <
[email protected]> wrote:

> Hello,
>
> Using PostgreSQL 15.1, compiled by Visual C++ build 1914, 64-bit in
> Windows 10.
>

That's 11 patch releases behind current.


> Trying to take backup of a database, using pg_dump, where one table
> contains bytea datatype, which I don't want to include in the backup.
>
> My command was:
> "E:\DBBackup\bin\pg_dump.exe"  -h 192.168.1.1 -p 5432 -U <username>
> --no-blobs -F c -v -f "E:\DBBackup\demo6_110420251637.bak" demo6
>
> the backup includes the bytea field also.
>
> I tried with
> "E:\DBBackup\bin\pg_dump.exe"  -h 192.168.1.1 -p 5432 -U <username> -B -F
> c -v -f "E:\DBBackup\demo6_110420251637.bak" demo6
>
> also, which also included the bytea field.
>
> What wrong I'm doing?  Couldn't figure it out.   Any help is appreciated.
>

The manual explicitly states what you're doing wrong.
https://www.postgresql.org/docs/15/app-pgdump.html

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-04-11 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-04-11 12:55 Re: To take backup of Postgresql Database without large objects [email protected] <[email protected]>
2025-04-11 13:29 ` Ron Johnson <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox