Re: Restoring database from backup - Mailing list pgsql-general

From Rich Shepard
Subject Re: Restoring database from backup
Date
Msg-id f4612ca2-7495-ab56-65cc-cd289e16da77@appl-ecosys.com
Whole thread Raw
In response to Re: Restoring database from backup  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Restoring database from backup
Re: Restoring database from backup
List pgsql-general
On Fri, 13 Dec 2024, Adrian Klaver wrote:

> This needs more information:
>
> 1) Have you backed up your database at the current state?

Adrian,

No, the current state is FUBAR'd. The cron backup script runs each night at
11:15 p.m.

> 2) What command did you use to create bustrac-2024-12-12.sql?

!/usr/bin/bash
#
# This script pg_dump to save the database w/date stamp

cd /data1/database-backups/
pg_dump -d bustrac -c -f bustrac-$(date +%Y-%m-%d).sql 
cd

Thanks,

Rich



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Restoring database from backup
Next
From: Rich Shepard
Date:
Subject: Re: Restoring database from backup