Install BackupPC

This manual covers the installation of BackupPC from an install from archive (zip/tar file).

This installation guide is specific to Oracle Linux.

Refer to the new product document located at https://backuppc.github.io/backuppc/BackupPC.html

Unzip

Unzip the archive to the target install location, for example, /opt/backuppc

Ensure Perl is installed;

which perl

If not, install it, and any of its dependent packages.

sudo yum install perl

Ensure CPAN is installed, as it will make installing the other Perl modules so much easier;

sudo yum install perl-CPAN

YAML is required for CPAN;

sudo yum install perl-YAML

Configure CPAN

First change to root, otherwise files cannot be installed;

sudo su –

Ensure the proxy is setup by issuing;

export http\_proxy=http://user: [email protected]:8080/

cpan

Use the auto configuration, but select NO when asked about connecting to the internet. Manually select mirrors from South Africa. Select all of them. Allow it to make changes to the shell config.

From the CPAN command, run;

install Bundle::LWP
install App::cpanminus

Check if Perl modules Compress::Zlib, Archive::Zip and File::RsyncP have been installed;

perl -e 'use Compress::Zlib; print $Compress::Zlib::VERSION."\n"'
perl -e 'use Archive::Zip; print $Archive::Zip::VERSION."\n"'
perl -e 'use File::RsyncP; print $File::RsyncP::VERSION."\n"'
sudo rpm -i perl-Archive-Zip-1.30-11.el7.noarch.rpm
sudo rpm -i perl-File-RsyncP-0.74-2.el7.x86\_64.rpm

Install BackupPC Perl module

sudo rpm -i BackupPC-XS-0.53-1.el7.x86_64.rpm

Perl modules can be installed using the instruction from; [http://www.cpan.org/modules/INSTALL.html](http://www.cpan.org/modules/INSTALL.html)

Start by installing cpanm

cpan App::cpanminus

SCGI

CPAN> install SCGI

Getting SCGI installed on Oracle Linux is frustrating, as there are very few examples on how to do this and some code has to be compiled.

Ensure the perl Build module is installed.

CPAN> install Module::Build