pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim <timfosho@gmail.com>
To: Erik Wienhold <ewie@ewie.name>
Cc: richard coleman <rcoleman.ascentgl@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: pg_dump why no indicator of completion
Date: Mon, 1 May 2023 23:21:58 -0400
Message-ID: <CAKhLO5h0iaJFrESO2yUBwKYUgqWhMocRQyxejEXOdZ_9Jo7GeA@mail.gmail.com> (raw)
In-Reply-To: <525021224.1417508.1682996739307@office.mailbox.org>
References: <CAGA3vBugp4Ce8ZbOfntb8HjCvo5QtX1hhAHj3iuCMZdzSTo4dg@mail.gmail.com>
	<CAKFQuwaEckQ5T10RwLsAx5giGtz9B4RsJg=U6WbZBTGAPmKSBA@mail.gmail.com>
	<6EF026A5-5CEC-48AB-B27E-C225DAE6E10A@elevated-dev.com>
	<491f094b-93f9-6a7d-1846-901aa583171c@gmail.com>
	<CAKhLO5iRHh6JoxBJyMV8RkEYWfjiE_qBhiUu1YTkLPAhjWwpuQ@mail.gmail.com>
	<CAGA3vBuf5sj87zrjZMAnjESx9abDz4UmPdj+2dYRkyy-jUCr8Q@mail.gmail.com>
	<525021224.1417508.1682996739307@office.mailbox.org>

 > After reading the responses in this thread I've adjusted it to capture
the exit status

Just so I'm not a complete troll, heres your example which also appends a
success/fail message :)

nohup $(pg_dump ${connection_details} > something.log 2>&1 && echo "pgdump
succeded" >> something.log || echo "pgdump failed" something.log) &

view thread (37+ messages)  latest in thread

Message-ID: <CAKhLO5h0iaJFrESO2yUBwKYUgqWhMocRQyxejEXOdZ_9Jo7GeA@mail.gmail.com>
Permalink:  ../CAKhLO5h0iaJFrESO2yUBwKYUgqWhMocRQyxejEXOdZ_9Jo7GeA@mail.gmail.com/
Also on:    postgresql.org/message-id/CAKhLO5h0iaJFrESO2yUBwKYUgqWhMocRQyxejEXOdZ_9Jo7GeA@mail.gmail.com

 · 

reply

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: timfosho@gmail.com, ewie@ewie.name, rcoleman.ascentgl@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: pg_dump why no indicator of completion
  In-Reply-To: <CAKhLO5h0iaJFrESO2yUBwKYUgqWhMocRQyxejEXOdZ_9Jo7GeA@mail.gmail.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