<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>PITR on PIGSTY</title>
    <link>https://v27.pgsty.pro/tags/pitr/</link>
    <description>Recent content in PITR on PIGSTY</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    
    
    
      <lastBuildDate>Mon, 01 Jan 0001 00:00:00 +0000</lastBuildDate>
    
    
      <atom:link href="https://v27.pgsty.pro/tags/pitr/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>Backup &amp; PITR</title>
        <link>https://v27.pgsty.pro/docs/pgsql/pitr/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/pgsql/pitr/</guid>
        <description>&lt;blockquote&gt;&#xA;&lt;p&gt;Pigsty uses &lt;a href=&#34;https://pgbackrest.org/&#34;&gt;pgBackRest&lt;/a&gt; for PITR backup &amp;amp; restore.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;In the case of a hardware failure, a physical replica failover could be the best choice. Whereas for data corruption scenarios (whether machine or human errors), Point-in-Time Recovery (PITR) is often more appropriate.&lt;/p&gt;&#xA;&lt;h2 id=&#34;backup&#34;&gt;Backup&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Use the following command to perform the &lt;a href=&#34;https://pgbackrest.org/command.html#command-backup&#34;&gt;backup&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-b77f9ef0-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;8&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-b77f9ef0-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# stanza name = {{ pg_cluster }} by default&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pgbackrest --stanza&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;${&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;stanza&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;}&lt;/span&gt; --type&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;full&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt;diff&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt;incr backup&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# you can also use the following command in pigsty (/pg/bin/pg-backup)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pg-backup       &lt;span class=&#34;c1&#34;&gt;# make a backup, incr, or full backup if necessary&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pg-backup full  &lt;span class=&#34;c1&#34;&gt;# make a full backup&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pg-backup diff  &lt;span class=&#34;c1&#34;&gt;# make a differential backup&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pg-backup incr  &lt;span class=&#34;c1&#34;&gt;# make a incremental backup&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Use the following command to print backup info:&lt;/p&gt;</description>
      </item>
    <item>
        <title>Point-in-Time Recovery</title>
        <link>https://v27.pgsty.pro/docs/concept/pitr/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/concept/pitr/</guid>
        <description>&lt;hr&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&#xA;&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You can roll back your cluster to any point in time, avoiding data loss caused by software defects and human errors.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Pigsty&amp;rsquo;s PostgreSQL clusters come with an automatically configured Point in Time Recovery (PITR) solution, based on the backup component &lt;a href=&#34;https://pgbackrest.org/&#34;&gt;&lt;strong&gt;pgBackRest&lt;/strong&gt;&lt;/a&gt; and the optional object storage repository &lt;a href=&#34;https://min.io/&#34;&gt;&lt;strong&gt;MinIO&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/concept/ha/&#34;&gt;&lt;strong&gt;High Availability solutions&lt;/strong&gt;&lt;/a&gt; can address hardware failures, but they are powerless against data deletions/overwrites/deletions caused by software defects and human errors. For such scenarios, Pigsty offers an out-of-the-box &lt;strong&gt;Point in Time Recovery&lt;/strong&gt; (PITR) capability, enabled by default without any additional configuration.&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
