Skip to main content
Version 4.0.0

Backup Repository Configuration

note

In this option, you can define the location where the following will be stored:

  • Backup metadata
  • The backups themselves
  • Transaction logs that enable future restoration

The Backup Repository is, in practice, a copy of the instance's directory (PGDATA) and the transaction logs (which ensure the consistency of backups).

Multiple repositories can be configured per backup, and they can be distributed across different servers.

Command Syntax
Terminal input
   pgsmart backup config [Flags]

Flags:

  • -h, --help . => Help.
Non-Interactive Configuration

Non-interactive execution is disabled for this operation.

Interactive Configuration
  1. Select the PgSmart Agent (or register new Agent).

  2. Select the Repositório de backup section (selection is made with the [spaces] key).

    Upon selecting the Repositório de backup section, the following operations are made available:

    • Listar Allows listing backup repositories.
    • Adicionar Allows adding backup repository.
    • Editar Allows editing backup repository.
    • Remover Allows removing backup repository.

List Backup Repositories

  1. Select the Listar operation.

  2. The configured backup repositories will be displayed.

    Figure 1 - Backup Repository Configuration - List
    Figure 1 - Backup Repository Configuration - List

Add a Backup Repository

  1. Select the Adicionar operation.

  2. Select the Section of the configuration file.

  3. Select the Operation in which the parameter can be configured.

  4. Enter the full path to the Backup repository.

  5. Confirm if you want to define the retention time for backups in the repository.

    5.1. Select the retention time definition method (whether in days or maximum quantity).

    5.2. Enter the maximum number of days or backups for the expiration of full backups.

    5.3. Enter the maximum value in days or backup quantity for retention of full backups.

    5.4. Enter the maximum quantity for retention of differential backups.

  6. Confirm the addition of the Backup repository.

    Figure 2 - Backup Repository Configuration - Create
    Figure 2 - Backup Repository Configuration - Create

Remove a Backup Repository

  1. Select the Remover operation.

  2. Select the Backup Repository you wish to remove.

  3. Confirm the removal of the repository.

Figure 4 - Backup Repository Configuration - Remove
Figure 4 - Backup Repository Configuration - Remove
Final Notes
note
  • By default, backups will be performed for all registered repositories. PgSmart currently does not support targeting a specific repository for backups, although pgBackRest supports this feature.

  • This feature will be available in a future version.

  • To perform this operation in PostgreSYS, use the "Global Settings" section, where access to all pgBackRest parameters is provided, enabling the creation and specific parameter configuration to indicate the target repository (this option requires more specific knowledge of pgBackRest, and further details can be obtained in the pgBackRest component documentation).