Backup Management Service Installation
PgSmart integrates with pgBackRest, a component from the PostgreSQL ecosystem, to perform backup and restore operations.
-
PgSmart CLI must be installed after meeting the minimum requirements.
-
Additional package repository to resolve indirect dependencies. According to each organization's security and support policies, Tecnisys does not provide these packages. For Enterprise Linux family distributions, the Extra Packages for Enterprise Linux - EPEL repository generally provides the necessary indirect dependencies.
-
The PgSmart Agent service must be started on all database nodes.
Terminal inputsystemctl start pgsmart-agent
-
Log in through the local PgSmart user. For example:
Terminal inputsu - pgsmart
-
PgSmart Agent Registration via the PgSmart-Client.
To install the Backup
service, use one of the following commands:
pgsmart install -s backup [Flags]
pgsmart install --service=backup [Flags]
Flags
-M, --pg-version
=11–17 => Defines the PostgreSQL major version to install. The latest available release will be used.-a, --agent=<agent>
=> Defines the alias, hostname, or IP address where a PgSmart Agent is installed.-h, --help
=> Displays the help.-q, --quiet
=> Non-interactive execution for service installation. Used together with --service, --pg-version, and --agent.-s, --service=backup
=> Backup Services of the PostgreSYS Platform.
This installation mode is activated by the quiet option (--quiet, -q) and uses default values for parameters not specified. However, this option is disabled during the first installation due to the need to create the PostgreSYS package repository based on interactively requested information.
- Command
- Video
pgsmart install -a <agent> -q --service=backup

- Instructions
- Video
pgsmart install
- Select the
PgSmart Agent
(or Register a new Agent). - Select
Gerenciamento de Backups
. - Select the
PostgreSQL Major Version
. - Select the
Release
of the selected PostgreSQL major version.
PostgreSQL binaries will be installed along with the selected components.
-
Confirm the installation.
-
Confirm whether to install/update the PostgreSYS Package Repository.
6.1 If yes, select
Provide
and enter:-
Repository URL
. -
Identification code
. -
Repository name
. -
Repository user
(optional if different from Tecnisys standard). -
Repository password
(optional if different from Tecnisys standard). -
Confirm whether to activate GPG key verification.
-
If so, provide the path to the GPG key file.
note- For a local installation, don't forget to download and import the public GPG key of the repositories (RPM-GPG-KEY-PGSYS).
For example, for RHEL 8 distributions, access:
File pathhttps://repo.tecnisys.com.br/repository/yum/pgsys/repos/4.0.0/rhel-8-x86_64/RPM-GPG-KEY-PGSYS
- The compressed installation packages (tar.gz) already include the GPG public key.
Figure 2 - Backup Installation - Interactive
-
-
Command Variations for Interactive Installation
Some parameters can be pre-passed in the command line; however, without the quiet option (--quiet, -q), execution remains interactive, and these parameters are used as default values in the prompts.
pgsmart install --service=backup
pgsmart install --pg-version=15
PgSmart defines environment variables (PGDATA, PGBIN, among others) in the current user's bash_profile
, which will be loaded in new sessions. Run the following command to apply them immediately:
source ~/.bash_profile