<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>pgbackrest on PIG</title>
    <link>https://pig.pgsty.com/v1.11/tags/pgbackrest/</link>
    <description>Recent content in pgbackrest on PIG</description>
    <generator>Hugo</generator>
    <language>en</language>
    
    
    
      <lastBuildDate>Sun, 06 Dec 2026 08:44:11 +0800</lastBuildDate>
    
    
      <atom:link href="https://pig.pgsty.com/v1.11/tags/pgbackrest/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>pig pitr</title>
        <link>https://pig.pgsty.com/v1.11/pitr/</link>
        
        
        
        <guid>https://pig.pgsty.com/v1.11/pitr/</guid>
        <description>&lt;p&gt;Use &lt;code&gt;pig pitr&lt;/code&gt; to restore a local PostgreSQL instance from pgBackRest backups.&#xA;For a managed restore, PIG stops services as needed and restores the data.&#xA;By default, it then starts PostgreSQL and leaves Patroni stopped for you to verify the recovered database.&lt;/p&gt;&#xA;&lt;p&gt;Recovery replaces data in the target directory. Start with &lt;code&gt;--plan&lt;/code&gt; to check the directory,&#xA;backup source, recovery target, and service actions.&lt;/p&gt;&#xA;&lt;h2 id=&#34;before-recovery&#34;&gt;Before recovery&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;You need an installed pgBackRest, a readable configuration file, a usable backup,&#xA;and the archived WAL needed to reach the target. The default config path is&#xA;&lt;code&gt;/etc/pgbackrest/pgbackrest.conf&lt;/code&gt;. Select another file with &lt;code&gt;-c&lt;/code&gt; and a stanza with &lt;code&gt;-s&lt;/code&gt;.&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig pgbackrest</title>
        <link>https://pig.pgsty.com/v1.11/pb/</link>
        
        
        
        <guid>https://pig.pgsty.com/v1.11/pb/</guid>
        <description>&lt;p&gt;&lt;code&gt;pig pgbackrest&lt;/code&gt; (alias &lt;code&gt;pig pb&lt;/code&gt;) creates backups, restores data, and manages pgBackRest stanzas.&#xA;It runs pgBackRest as the PostgreSQL operating-system user, selected by &lt;code&gt;--dbsu&lt;/code&gt; or &lt;code&gt;$PIG_DBSU&lt;/code&gt;&#xA;(default &lt;code&gt;postgres&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;p&gt;Before the first backup, install pgBackRest and configure the stanza and repository in &lt;code&gt;pgbackrest.conf&lt;/code&gt;.&#xA;A &lt;em&gt;stanza&lt;/em&gt; groups the backup configuration for one PostgreSQL cluster.&#xA;In PostgreSQL, enable &lt;code&gt;archive_mode&lt;/code&gt; and set &lt;code&gt;archive_command&lt;/code&gt; to call pgBackRest.&lt;/p&gt;&#xA;&lt;p&gt;Use &lt;a href=&#34;https://pig.pgsty.com/v1.11/pitr/&#34;&gt;&lt;code&gt;pig pitr&lt;/code&gt;&lt;/a&gt; when recovery must also stop Patroni and PostgreSQL, then restart PostgreSQL.&#xA;Use &lt;code&gt;pig pb restore&lt;/code&gt; when you manage those steps yourself.&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
