Backup Management Service Installation
The component of the PostgreSQL ecosystem that PgSmart integrates with to perform Backup
and 'Restore' operations is pgBackRest.
-
PgSmart Installation, meeting the minimum requirements .
-
Extra package repository to resolve indirect dependencies. In accordance with the security and support policies of each organization, Tecnisys does not provide such packages. For the Enterprise Linux family distributions, the Extra Packages for Enterprise Linux - EPEL repository generally provides the necessary indirect dependencies.
-
PgSmart Agent service Initialized on all database environment machines.
Terminal inputsystemctl start pgsmart-agent
-
Log in through the PgSmart local user. For example:
Terminal inputsu - PgSmart
-
-
PgSmart Agents Registration through 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, --pgversion=(11/12/13/14/15). Default: 15.
=> Major version of PostgreSQL, regardless of the service. The latest release of the selected major version will be used.-a, --agent= <agent>
. => Alias, hostname, or IP of the server where a PgSmart Agent is installed.-h, --help
. => Help.-q, --quiet
. => Non-interactive execution for service installation. Used in conjunction with --service, --pg-major-version and --agent.
This installation mode is enabled by the quiet option (--quiet, -q) and its execution uses default values for unspecified parameters. However, this option is disabled during the first installation due to the need to create the PostgreSYS package repository based on information requested interactively.
- Command
- Video
pgsmart install -a <value> -q --service=backup

- Instructions
- Video
pgsmart install
-
Select the
PgSmart Agent
(or Register a new Agent). -
Select
Backup Management Service
. -
Select the
Major version
of ambient PostgreSQL. -
Select the
release
of the ambient PostgreSQL majority version. -
Confirm installation.
-
Confirm whether you want to download and install the PostgreSYS package repository. 6.1. Provide the package repository URL.
noteThis question is not asked if the pgsys-utils repositories are already present or mapped on the machine.
Figure 2 -Backup Installation - Interative
Command Variations for Interactive Installation
Some parameters can be passed up front in the command; however, the execution is still interactive. This means that during the installation, the parameters provided must be confirmed, along with the 'default' values for those parameters that are not known.
pgsmart install --service=backup
pgsmart install --pgversion=15
PgSmart sets environment variables (PGDATA, PGBIN, among others) in the current user's bash_profile
file that will be loaded in new sessions. If you want to load these variables immediately, execute the command below after the installation:
source ~/.bash_profile