Re: Check if backup is in progress

From: Marti Raudsepp <marti(at)juffo(dot)org>
To: sodik <stanislav(dot)miklik+pg(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Check if backup is in progress
Date: 2012-02-16 22:05:05
Message-ID: CABRT9RC6mHPyQfotxF1KZY6OYym=cUDN_t60dZuhcFhHqWaUeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Feb 16, 2012 at 18:53, sodik <stanislav(dot)miklik+pg(at)gmail(dot)com> wrote:
> is there any way how to check that postgres 9.1 is currently in backup
> mode?

You can check the existence of the "backup_label" file in your data
directory. If it's there, then a backup is in progress.

If your monitoring system is on a diferent server from the database,
then you can create a custom procedure to check for this file and call
it via SQL.

Regards,
Marti

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Heine Ferreira 2012-02-16 22:11:48 running multiple versions
Previous Message Diego Schulz 2012-02-16 21:35:26 Re: [GENERAL] conexão no windows 7