Re: Automatic Backups - Mailing list pgsql-admin

From John DeSoi
Subject Re: Automatic Backups
Date
Msg-id 5FE5D201-A9CF-11D9-92FA-000A95B03262@pgedit.com
Whole thread Raw
In response to Re: Automatic Backups  ("David A. Leedom" <daleedom@hightowergroup.com>)
List pgsql-admin
On Apr 8, 2005, at 4:00 PM, David A. Leedom wrote:

> I found that the registry entries use a GUID product code on the final
> node of the registry.  Is there any way to link this back to the
> running database?
>
> I could hard code the product codes into my backup app.  If for some
> reason there are more than one Postgres installs on one system would
> there be a way to determine the product code of the database I am
> backing up via the connect string?  (System tables/variables?)
>
> Another possibility is that I could include the pg_dump/restore
> utilities with the backup app and set it up to only backup databases
> of the correct version.
>

One idea is to use "pg_ctl.exe status" to determine if the server
associated with the registry entry is running. I think you'll also need
to specify the data directory with this command, so hopefully that is
in the registry also.


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


pgsql-admin by date:

Previous
From: William Yu
Date:
Subject: Re: can be database files be copied using 'cp' between hosts with
Next
From: "Magnus Hagander"
Date:
Subject: Re: Automatic Backups