Restoring database from backup

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Restoring database from backup
Date: 2024-12-13 18:21:03
Message-ID: d97a8613-3b55-4a5b-887f-db7d2923c4ab@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

TIA,

Rich

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-12-13 18:31:49 Re: Restoring database from backup
Previous Message Adrian Klaver 2024-12-13 16:46:56 Re: Errors when restoring backup created by pg_dumpall