Re: Restoring database from backup

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Restoring database from backup
Date: 2024-12-13 19:18:13
Message-ID: f4612ca2-7495-ab56-65cc-cd289e16da77@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2024-12-13 19:23:27 Re: Restoring database from backup
Previous Message Adrian Klaver 2024-12-13 19:16:45 Re: Restoring database from backup