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

From Adrian Klaver
Subject Re: Restoring database from backup
Date
Msg-id 3745bd88-413f-4fa5-90a1-d374852d10a9@aklaver.com
Whole thread Raw
In response to Restoring database from backup  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Restoring database from backup
List pgsql-general

On 12/13/24 10:21 AM, Rich Shepard wrote:
> I made a careless error this morning and want to restore the database from
> yesterday's backup, `bustrac-2024-12-12.sql'. If I run
> 
> psql -d bustrac -f bustrac-2024-12-12.sql
> 
> will this restore the database to yesterday's status without first
> deleting/removing the FUBAR'd one?

This needs more information:

1) Have you backed up your database at the current state?

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

> 
> TIA,
> 
> Rich
> 
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

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