pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Troels Arvin <troels@arvin.dk>
To: pgsql-general@lists.postgresql.org
Subject: Initiate backup from routine?
Date: Wed, 17 Jan 2024 15:40:53 +0100
Message-ID: <409843b2-54ec-434f-a173-57c207744dda@arvin.dk> (raw)

Hello,

I would like to allow a co-worker to perform a backup of a database, 
such that the backup is saved to the database server itself. One use 
case is that (s)he would like an extra backup of a database, just before 
an application update is deployed. The co-worker doesn't have shell 
access on the DB server (so no sudo option), and we would like to allow 
this to happen without having to involve a DBA.

Is it possible to call pg_dump (or equivalent action) through a 
procedure/function?

-- 
Regards,
Troels Arvin

view thread (7+ messages)  latest in thread

Message-ID: <409843b2-54ec-434f-a173-57c207744dda@arvin.dk>
Permalink:  ../409843b2-54ec-434f-a173-57c207744dda@arvin.dk/
Also on:    postgresql.org/message-id/409843b2-54ec-434f-a173-57c207744dda@arvin.dk

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: troels@arvin.dk
  Subject: Re: Initiate backup from routine?
  In-Reply-To: <409843b2-54ec-434f-a173-57c207744dda@arvin.dk>
  References: <409843b2-54ec-434f-a173-57c207744dda@arvin.dk>

* 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