Installing the R1Soft Backup Agent on CentOS
1. Install Kernel Sources
If you are using an unmodified kernel provided by CentOS installer, install the kernel-devel package:
yum install kernel-devel
2. Configure YUM Repository
YUM is the easiest way to keep programs up-to-date on RedHat-compatible distributions. It downloads and installs the latest version of a program. Configure the YUM repository to manage install and upgrades of the Backup Agent.
First, create a YUM .repo file with the R1Soft repository information. Save the file in the yum.repos.d directory which is typically located in /etc/.
2.1 Open the new file with a text editor such as vi or nano:
cd /etc/yum.repos.d
vi r1soft.repo
or
nano -w /etc/yum.repos.d/r1soft.repo
2.2 Insert the following text into the file and save the file:
[r1soft]
name=R1Soft Repository Server
baseurl=http://repo.r1soft.com/yum/stable/$basearch/
enabled=1
gpgcheck=0
2.3 To verify what is written to the file, use the following command:
cat /etc/yum.repos.d/r1soft.repo
Compiling Server Backup Kernel Module Against Kernel Source Tree
You will have to compile the kernel module using the kernel headers. The program serverbackup-setup will obtain all the information needed to compile a module from your running kernel.
In order for kernel module compilation to work, you must have Internet connectivity directly from the Linux server you are installing Server Backup on, to TCP port HTTPS (443), on the host krnlbld.r1soft.com.
You can test connectivity with the following command (this may take a minute):
serverbackup-setup --test-connection
3. Install the Package
Once you have configured the YUM repository, you can use the following command to install the Backup Agent:
yum install serverbackup-enterprise-agent
Then, enter "y" to install all the dependencies of the package.
3.1 Build Server Backup Kernel Module Online (direct Internet connection to R1Soft build server)
To attempt to build the kernel module, run the following command (this may take several minutes):
serverbackup-setup --get-module
If the module has been compiled and installed successfully, you will see an output similar to the following:
Saving kernel module to '/lib/modules/r1soft/hcpdriver-cki-2.6.32-279.14.1.el6.i686.ko' Kernel module is now installed. Use '/etc/init.d/cdp-agent restart' to load the new driver