Installing BART v2.6
This section will walk you through performing a fresh installation of BART on a host. Installation instructions are organized into the following platform/installer specific sections:
- Installing BART on a CentOS/Rocky Linux/AlmaLinux Host
- Installing BART on a RHEL Host
- Installing BART on a CentOS or RHEL Host
- Installing BART on a Debian or Ubuntu Host
- Installing BART on an SLES 12 Host
Note
If you are using the pdf version of this document, using cut/paste to copy command may result in extra spaces or carriage returns in the pasted command. If a command fails, check the command carefully for additional characters.
Installing BART on a CentOS/Rocky Linux/AlmaLinux Host
The following section demonstrates installing BART on a CentOS/Rocky Linux/AlmaLinux host using an RPM package. This section assumes that the user has some knowledge of installation and system administration procedures, and has administrative privileges on the host.
To install the repository configuration, assume superuser privileges and invoke one of the following platform-specific commands:
On CentOS 7:
On Rocky Linux 8 or AlmaLinux 8:
Replace the
USERNAME:PASSWORD
in the following command with the username and password of a registered EnterpriseDB user:To request credentials for the repository, visit the EDB website.
Before installing BART, execute the following command to install the Extra Packages for Enterprise Linux (EPEL) release package:
On CentOS 7:
On Rocky Linux 8 or AlmaLinux 8:
For CentOS 8, enable the PowerTools repository to satisfy EPEL package dependencies:
For Rocky Linux 8 or AlmaLinux 8, disable the built-in PostgreSQL module:
Optionally, install the
pg_basebackup
utility program using the server client package. If you do not already have thepg_basebackup
program installed on the BART host, you can install a limited number of files that include thepg_basebackup
program by invoking the following command:On CentOS 7:
On Rocky Linux 8 or AlmaLinux 8:
In the above command, replace
<xx>
with the required Advanced Server version. Thepg_basebackup
version must be the same or more recent than the database server to be backed up. For example,pg_basebackup
version 10 can be used to back up database server version 10, but cannot be used to back up database server version 11.Use the following command to install BART:
On CentOS 7:
On Rocky Linux 8 or AlmaLinux 8:
Repeat the installation process described in this section to install BART on each remote host on which an incremental backup is to be restored.
To verify the BART installation, navigate to the
/usr/edb/bart/bin
directory and execute the following command:The
bart --version
command should return the current BART version. If thebart --version
command returns an error stating the PATH is not available after switching from the root user to another BART user account, adjust the setting of thePATH
environment variable to include the directory location of the BARTbin
subdirectory in the~/.bashrc
or~/.bash_profile
files of the following user accounts:- The BART user account on the BART host. See Configuring BART for details.
- The remote user account on the remote host to which incremental backups are to be restored. For details, see the EDB Backup and Recovery User Guide available at the EDB website.
Upon successful installation, BART is installed in the
BART_HOME
directory:/usr/edb/bart
The installation includes the following files:
File Name | Location | Description |
---|---|---|
bart | <BART_HOME> /bin | BART command line, executable program |
bart-scanner | <BART_HOME> /bin | BART WAL scanner program |
bart.cfg.sample | <BART_HOME> /etc | Sample BART configuration file |
xlogreader_ident.so | <BART_HOME> /lib | Libraries supporting WAL versions |
bart_license.txt | <BART_HOME> | License agreement |
After BART is installed successfully, you need to configure the installation.
Installing BART on a RHEL Host
The following section demonstrates installing BART on a RHEL host using an RPM package. This section assumes that the user has some knowledge of installation and system administration procedures, and has administrative privileges on the host.
To install the repository configuration, assume superuser privileges and invoke one of the following platform-specific commands:
On RHEL 7:
On RHEL 8:
Replace the
USERNAME:PASSWORD
in the following command with the username and password of a registered EnterpriseDB user:To request credentials for the repository, visit the EDB website.
Before installing BART, execute the following command to install the Extra Packages for Enterprise Linux (EPEL) release package:
On RHEL 7:
On RHEL 8:
Enable the repository:
On RHEL 7, enable the
optional, extras
, andHA
repositories to satisfy EPEL package dependencies:On RHEL 8, enable the
codeready-builder-for-rhel-8-*-rpms
repository to satisfy EPEL packages dependency:For RHEL 8, disable the built-in PostgreSQL module:
Optionally, install the
pg_basebackup
utility program using the server client package. If you do not already have thepg_basebackup
program installed on the BART host, you can install a limited number of files that include thepg_basebackup
program by invoking the following command:On RHEL 7:
On RHEL 8:
In the above command, replace
<xx>
with the required Advanced Server version. Thepg_basebackup
version must be the same or more recent than the database server to be backed up. For example,pg_basebackup
version 10 can be used to back up database server version 10, but cannot be used to back up database server version 11.Use the following command to install the BART:
On RHEL 7:
On RHEL 8:
Repeat the installation process described in this section to install BART on each remote host on which an incremental backup is to be restored.
To verify the BART installation, navigate to the
/usr/edb/bart/bin
directory and execute the following command:The
bart --version
command should return the current BART version. If thebart --version
command returns an error stating the PATH is not available after switching from the root user to another BART user account, adjust the setting of thePATH
environment variable to include the directory location of the BARTbin
subdirectory in the~/.bashrc
or~/.bash_profile
files of the following user accounts:- The BART user account on the BART host. See Configuring BART for details.
- The remote user account on the remote host to which incremental backups are to be restored. For details, see the EDB Backup and Recovery User Guide available at the EDB website.
Upon successful installation, BART is installed in the
BART_HOME
directory:/usr/edb/bart
The installation includes the following files:
File Name | Location | Description |
---|---|---|
bart | <BART_HOME> /bin | BART command line, executable program |
bart-scanner | <BART_HOME> /bin | BART WAL scanner program |
bart.cfg.sample | <BART_HOME> /etc | Sample BART configuration file |
xlogreader_ident.so | <BART_HOME> /lib | Libraries supporting WAL versions |
bart_license.txt | <BART_HOME> | License agreement |
After BART is installed successfully, you need to configure the installation.
Installing BART on a RHEL/CentOS 7 PPCLE Host
The following section demonstrates installing BART on a RHEL host using an RPM package. This section assumes that the user has some knowledge of installation and system administration procedures, and has administrative privileges on the host.
Install Advance Toolchain:
To install the repository configuration, assume superuser privileges and invoke the following command:
Replace the
USERNAME:PASSWORD
in the following command with the username and password of a registered EnterpriseDB user:To request credentials for the repository, visit the EDB website.
Before installing BART, execute the following command to install the Extra Packages for Enterprise Linux (EPEL) release package:
On RHEL 7, enable the
optional, extras
, andHA
repositories to satisfy EPEL package dependencies:Invoke the following command to install BART:
Installing BART on a Debian or Ubuntu Host
Perform the following steps to install a Debian package using the EnterpriseDB apt repository.
To request credentials for the repository, visit the EDB website.
Assume the superuser privileges.
To configure the EnterpriseDB repository on Debian 9, Ubuntu 18, and Ubuntu 20:
On Debian 10:
a. Set up the EnterpriseDB repository:
b. Substitute your EnterpriseDB credentials for the
username
andpassword
placeholders in the following command:Add support to your system for secure APT repositories.
Add the EDB signing key; When invoking the command, replace the
username
andpassword
with the credentials provided by EnterpriseDB.Update the repository metadata.
Install the Debian package.
Installing BART on an SLES 12 Host
This section provides instructions for installing BART on an SLES 12 SP4 host using the zypper package manager. BART is supported on SLES SP4 and SP5 versions.
Assume superuser privileges.
Use the following command to add the EDB repository to your SLES host:
Invoke the following command to refresh the metadata:
Install
SUSEConnect
to register the host with SUSE to allow access to SUSE repositories:Register the host with SUSE to allow access to SUSE repositories and replace
'REGISTRATION_CODE'
and'EMAIL'
with your SUSE registration information:Install the following repository for PEM dependencies:
Refresh the metadata:
Then, use the zypper utility to install BART: