2.2. Upgrading pg_probackup3 #

pg_probackup3 is upgraded using the OS package manager. In most cases, updating the pg-probackup3 package is sufficient to migrate to the new version. However, some versions may require additional actions. For more details, refer to the release notes of the required version.

For a standard upgrade, follow the steps below.

  1. Before the upgrade:

    • Ensure that there are no active backup operations.

    • Back up your configuration files.

  2. Update the pg-probackup3 package using the OS package manager:

    • On Debian family systems:

      sudo apt update
      sudo apt install pg-probackup3
       
    • On Red Hat family systems:

      sudo dnf upgrade pg-probackup3
      
  3. Verify the installation:

    • Check the utility version:

      pg_probackup3 --version
      
  4. Check the backup compatibility.

    pg_probackup3 maintains backward compatibility, which means that you can restore backups created by a previous version of the utility. However, it is recommended to verify compatibility using one of the following methods:

    • (Recommended) Perform a test restore of one of the critical backups on a separate server and ensure that the cluster operates correctly. This method is time-consuming and resource-intensive but provides full confidence.

    • Run the data integrity check:

      pg_probackup3 validate -B backup_dir
      

      This method is faster but slightly less reliable.

    • Run the backup visibility check:

      pg_probackup3 show -B backup_dir
      

      This is the fastest yet least reliable method.

FAQ