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:
yum -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm
On Rocky Linux 8 or AlmaLinux 8:
dnf -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm
Replace the
USERNAME:PASSWORD
in the following command with the username and password of a registered EnterpriseDB user:sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo
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:
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
On Rocky Linux 8 or AlmaLinux 8:
dnf -y install epel-release
For CentOS 8, enable the PowerTools repository to satisfy EPEL package dependencies:
dnf config-manager --set-enabled PowerTools
For Rocky Linux 8 or AlmaLinux 8, disable the built-in PostgreSQL module:
dnf -qy module disable postgresql
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:
yum install edb-as<xx>-server-client
On Rocky Linux 8 or AlmaLinux 8:
dnf install edb-as<xx>-server-client
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:
yum -y install edb-bart
On Rocky Linux 8 or AlmaLinux 8:
dnf -y install edb-bart
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:bart --version
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:
yum -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm
On RHEL 8:
dnf -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm
Replace the
USERNAME:PASSWORD
in the following command with the username and password of a registered EnterpriseDB user:sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo
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:
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
On RHEL 8:
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Enable the repository:
On RHEL 7, enable the
optional, extras
, andHA
repositories to satisfy EPEL package dependencies:subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms"
On RHEL 8, enable the
codeready-builder-for-rhel-8-*-rpms
repository to satisfy EPEL packages dependency:ARCH=$( /bin/arch ) subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms"
For RHEL 8, disable the built-in PostgreSQL module:
dnf -qy module disable postgresql
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:
yum install edb-as<xx>-server-client
On RHEL 8:
dnf install edb-as<xx>-server-client
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:
yum -y install edb-bart
On RHEL 8:
dnf -y install edb-bart
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:bart --version
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:
rpm --import https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHEL7/gpg-pubkey-6976a827-5164221b cat > /etc/yum.repos.d/advance-toolchain.repo <<EOF # Beginning of the configuration file [advance-toolchain] name=Advance Toolchain IBM FTP baseurl=https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHEL7 failovermethod=priority enabled=1 gpgcheck=1 gpgkey=ftp://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHELX/gpg-pubkey-6976a827-5164221b # End of the configuration file
To install the repository configuration, assume superuser privileges and invoke the following command:
yum -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm
Replace the
USERNAME:PASSWORD
in the following command with the username and password of a registered EnterpriseDB user:sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo
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:
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
On RHEL 7, enable the
optional, extras
, andHA
repositories to satisfy EPEL package dependencies:subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms"
Invoke the following command to install BART:
yum -y install edb-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.
sudo su -
To configure the EnterpriseDB repository on Debian 9, Ubuntu 18, and Ubuntu 20:
sh -c 'echo "deb https://username:password@apt.enterprisedb.com/$(lsb_release -cs)-edb/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/edb-$(lsb_release -cs).list'
On Debian 10:
a. Set up the EnterpriseDB repository:
sh -c 'echo "deb [arch=amd64] https://apt.enterprisedb.com/$(lsb_release -cs)-edb/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/edb-$(lsb_release -cs).list'
b. Substitute your EnterpriseDB credentials for the
username
andpassword
placeholders in the following command:sh -c 'echo "machine apt.enterprisedb.com login <username> password <password>" > /etc/apt/auth.conf.d/edb.conf'
Add support to your system for secure APT repositories.
apt-get install apt-transport-https
Add the EDB signing key; When invoking the command, replace the
username
andpassword
with the credentials provided by EnterpriseDB.wget -q -O - https://apt.enterprisedb.com/edb-deb.gpg.key | apt-key add –
Update the repository metadata.
apt-get update
Install the Debian package.
apt-get install edb-bart
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.
sudo su -
Use the following command to add the EDB repository to your SLES host:
zypper addrepo https://zypp.enterprisedb.com/suse/edb-sles.repo
Invoke the following command to refresh the metadata:
zypper refresh
Install
SUSEConnect
to register the host with SUSE to allow access to SUSE repositories:zypper install SUSEConnect
Register the host with SUSE to allow access to SUSE repositories and replace
'REGISTRATION_CODE'
and'EMAIL'
with your SUSE registration information:SUSEConnect -r 'REGISTRATION_CODE' -e 'EMAIL'
SUSEConnect -p PackageHub/12.4/x86_64
SUSEConnect -p sle-sdk/12.4/x86_64
Install the following repository for PEM dependencies:
zypper addrepo https://download.opensuse.org/repositories/Apache:/Modules/SLE_12_SP4/Apache:Modules.repo
Refresh the metadata:
zypper refresh
Then, use the zypper utility to install BART:
zypper -n install edb-bart