Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkPqI-00Else-22 for pgsql-general@arkaria.postgresql.org; Mon, 26 Jan 2026 16:53:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vkPqH-009Us6-2H for pgsql-general@arkaria.postgresql.org; Mon, 26 Jan 2026 16:53:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkPqH-009Ury-0y for pgsql-general@lists.postgresql.org; Mon, 26 Jan 2026 16:53:33 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vkPqF-00000000ZVB-0jZ0 for pgsql-general@lists.postgresql.org; Mon, 26 Jan 2026 16:53:33 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-2a12ed4d205so31013525ad.0 for ; Mon, 26 Jan 2026 08:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769446409; cv=none; d=google.com; s=arc-20240605; b=W9RgrJZYPgqxNn3gs1n3WRNVHzbYtjXvFad0HD4AtOC5s1vnMyqSrFW15T21WoeLov BqR+qy9blskhjUmX9eNsnHBjQu8EpNoIfzdgcKqWzOfXwgOlt9NHXsytdjfTkTT0uPes rvg1Thq1fMbLWZJLnHM3fPFz6xbb8mgisj9Et5tCnytI79Z9vN6UgUnWKcQfXbjZAYAt jonQicD0bzFUKeXTa/wKVhV9nLznXgn6LMl7z8nnj428Dr+khuzhcKLrXKRRtL5aZJpD N+bsHtzUc0VReQ5OHEb5H/b+ka2Ygf7159DHtJ7EhlpQRhBH76K8+CGKiTyupokPeSSu 0dGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+9Y7VXbKpDjhcactpIfP0hk1vZMk5tBmBYAul1yZt/8=; fh=2DoGC78b0mi8uZ4UY+9ocPF86GSVzeaJWqou/x907js=; b=VZAh8ySnXdRpXqQPHibSWm5yzkZ8SGPcaCehv0CdrKlAPNeNLn0hYysZWXnUTh2clr I7fqsJhPxodfLMbAa5sZKmdrXuoT01rDrlYPaji9loJJfjhB34vbsq96sLHGBahFUe8r 3EZZo3g8jT9rfO2UgBRhgnS++K8GZvNQthBgXMZO03NfJicbqyaNKI+qytXegqJv03Me CxDxUeIap0id9AhuZj5PTHpO13O+b2Xa3l96PBvchPXhrQr5ae6+Y4gsETZSwg9fo2r2 o8bJqNxMM7G9jDcCazxvOLIyXU8wS2wwPYEEJmiZvJvRkSEeqhx29Ie7zAwYi+fc26eY waKA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769446409; x=1770051209; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=+9Y7VXbKpDjhcactpIfP0hk1vZMk5tBmBYAul1yZt/8=; b=OuG5vM7DyC7R3d1YTmWq0Nn7U6Hax3hqQgTw4SHEPhb6dUKUXQPMLedCp0RMEcu+uq WW3KZmdquHzHRgfeRDPVjY8tZGrgcJn52r0E+ojnqsGfttIMBE5P5mD83YGrzXKg54sA BxHcaT6QiE44MKc2/nvLu78p/U77GOhX8r9ITTM10Pje11l67VdkUO2YbqFBgvitMw8b NgGuHkQHpqQIylRt/wFI3C/BAJqMmpH3pkHh5wWINQv1HnDLjXqHoyU2mjVkRt6DA4Rc f0XABZz+qYwMVBwL73maCcBYLohr2JT9LOzyTaB0q6ebNxd2Eauhly1ZkPUAIltgzZMZ 70Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769446409; x=1770051209; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+9Y7VXbKpDjhcactpIfP0hk1vZMk5tBmBYAul1yZt/8=; b=p9yWVUrhrv6lXWuyrjVf5Hf9wKmKjsGYDMM2Wow7EqpG4Yutuy4kJHD/T+GVA4LWKm XZmrr3fzX1+gBoYZa7esvNfgPWCXHD1INXjyhifwgKIAfacTaBMTMlKKfs10tNCMz70m ryKN393+13ltvJEaYjOAIFsi2tAWe3q2vTfsOncgoc7CoTMvD5dxFkG2otY/mI9lZR2n EAeruvKi8nSRZ3xX2z0VTEcbybhgiB1KfJWom9AfNUZc4I0qDgv+PFCeR+SYw44qZHC5 sJX6P5dpgguuA1v8RA2vEfBn2BKLZYQ97nAEEbAJyxebm7IO2fDcAWc7MJUq8vlhNLS/ A5vQ== X-Gm-Message-State: AOJu0YyxfTDcM8iivC4HVHVIbRwFwrn4m0sziaAt2vfCOwcqnB1xXGet 1YcDHr4bJAUtatuSGgjR5BHs43xAzQ7+XNvMPDJlqBsXW0JlQQvvppxe5m9VRcLMtSq4b4bhTYm BWOP7sA9QLDcDuOmQjSYcsqEqAXqF5ZqF0Z3I X-Gm-Gg: AZuq6aJmrJnMZuYqPzCyk93cA57UCUUo8FUX/4KB9axGwNYKDYvR5GLogrTfuB3NK18 Vp4ibUWksl3LhOUa9HzT+EFTERB12SYv8fb98+RSqKxDx2xGjsbLjFiAeIosm6MCN1nwRG1DTZ+ ackVGXB/fN/gVxIJuQxvLEmUK+GevS03ky1gbVCDXRoTmU1yLRd6rSe5LLJwEm8J3KQorbmmv/3 UMScjTpBk6pg89UvZ5tHUP33CRvh25qq/H6TyTF0H/hVyUQ8963zGIMYIqwb7ElAJvEPpeNzgLw minDU5U= X-Received: by 2002:a17:90b:1fc6:b0:330:bca5:13d9 with SMTP id 98e67ed59e1d1-353c418be41mr3664577a91.32.1769446408620; Mon, 26 Jan 2026 08:53:28 -0800 (PST) MIME-Version: 1.0 References: <1730736265.4259921.1769443263077.ref@mail.yahoo.com> <1730736265.4259921.1769443263077@mail.yahoo.com> In-Reply-To: From: Ron Johnson Date: Mon, 26 Jan 2026 11:53:17 -0500 X-Gm-Features: AZwV_QgFqmcPwTIh_RFuIjM1Nm65e-vJ7H18x-mnHPcKAbhgsLjo3VCkyqSQg9g Message-ID: Subject: Re: About backups To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000a28d3f06494d5842" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a28d3f06494d5842 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 26, 2026 at 11:11=E2=80=AFAM Adrian Klaver 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? > --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000a28d3f06494d5842 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


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

Not from within the Postgres instance.

You will need to use:

https://www.postgresql.org/docs/current/app-p= gdump.html

Felix,=C2=A0
pg_du= mp is a logical export tuned for speed and multithreading.=C2=A0 Alm= ost certainly not what you want.

pgbackrest is the= equivalent of BACKUP DATABASE and BACKUP LOG.=C2=A0 It's an external p= rogram (stuffing everything in the database engine is not The Unix Way) whi= ch typically you run from cron.=C2=A0Redrirect=C2=A0stdout and stderr to a = log file with a timestamp in the name.=C2=A0 (That, at least, is what I'= ;ve been doing for 8 years.=C2=A0 It works perfectly.)

=
pgbackrest also has an "info" option which gives you details= of all the backups currently in the repository.
=C2=A0
>
> 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?
=C2=A0From 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> lobs= ter!
--000000000000a28d3f06494d5842--