Re: About backups - Mailing list pgsql-general

From Ron Johnson
Subject Re: About backups
Date
Msg-id CANzqJaAygQG3F3fKe25YV765kUkO=UQqefACpo+2KQJXew7g-Q@mail.gmail.com
Whole thread Raw
In response to Re: About backups  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: About backups
List pgsql-general


On Mon, Jan 26, 2026 at 11:11 AM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 1/26/26 08:01, felix.quintgz@yahoo.com wrote:
> Is there a way to implement the SQL Server command 'BACKUP DATABASE'?

Not from within the Postgres instance.

You will need to use:

https://www.postgresql.org/docs/current/app-pgdump.html

Felix, 
pg_dump is a logical export tuned for speed and multithreading.  Almost certainly not what you want.

pgbackrest is the equivalent of BACKUP DATABASE and BACKUP LOG.  It's an external program (stuffing everything in the database engine is not The Unix Way) which typically you run from cron. Redrirect stdout and stderr to a log file with a timestamp in the name.  (That, at least, is what I've been doing for 8 years.  It works perfectly.)

pgbackrest also has an "info" option which gives you details of all the backups currently in the repository.
 
>
> Is there a way to see the restores performed on a database?
> Is there an equivalent table to msdb.dbo.restorehistory in SQL Server?
> Is there a way to implement an equivalent if one doesn't exist?

 From what I understand there are various ways of doing this in SQL
Server, which way are you interested in?
--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: About backups
Next
From: felix.quintgz@yahoo.com
Date:
Subject: Re: About backups