Configure an APT repository on Debian and Ubuntu to install the Backup Agent using apt. This repository also helps to manage upgrades of the Backup Agent in the future. For more information about upgrading the Backup Agent, see Upgrade Backup Agent for Linux.
To configure an APT repository:
- Modify the /etc/apt/sources.list to include the R1Soft repository, and then download the R1Soft apt gpg key using a command similar to the following:
- Run the following command:
- Once the APT repository is configured, you can use the following command to install the Backup Agent:
For more information about downloading the Backup Agent, see Obtain Linux Backup Agent.
Most Linux distributions come with the unzip utility pre-installed.
To determine if you have the unzip utility:
Run the following command:
The system returns output similar to the following:
If it returns nothing, install the unzip utility first.
To install unzip on Debian or Ubuntu:
Execute the following command:
Use the unzip command to extract the files.
You must be a Linux root user to install the Backup Agent.
The archive extracted contains two folders: one with .deb packages (in our case, "deb-linux64") and one with .rpm packages ("rpm-linux64"). If you are installing on Debian or Ubuntu, choose the folder with .deb packages.
Each folder contains a set of the Backup Agent components:
You must install all of the previous folders in one step. Use the cd command to go to the folder with the packages (in our case, "cd deb-linux64"), and then run the following command:
Server Backup Device Driver is a proprietary, loadable Linux kernel module distributed by R1Soft. It is loadable at run-time without restarting Linux, and you do not need to recompile your Linux kernel to use it.
The Server Backup Agent will attempt to install the Linux kernel module automatically on startup so the following only applies if that fails.
You need to have loadable modules enabled as a feature in your kernel. This is an advanced feature on all popular Linux distributions.
You must compile the kernel module using the kernel headers. The program serverbackup-setup obtains all the information needed to compile a module from your running kernel.
In order for kernel module compilation to work, you should have Internet connectivity directly from the Linux server you are installing the Backup Agent 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):
If you are using an unmodified kernel provided by Ubuntu installer, install the kernel-devel package:
In the recent versions of Ubuntu Server the correct version of Linux-headers is probably already installed, so you don't have to install it.
To attempt to build the kernel module, run the following command (this may take several minutes):
If the module is compiled and installed successfully, the system displays output similar to the following:
Build the Server Backup kernel module offline (without direct Internet connection to R1Soft build server)
If there is no direct Internet connection between your Server Backup Manager and R1Soft build server, it is still possible to compile the kernel module. In this case:
- Create tarball file with the kernel headers.
Gathering kernel information complete.
Creating kernel headers package
Checking '/tmp/r1soft-cki.1353084109' for kernel headers
Found headers in '/tmp/r1soft-cki.1353084109'
Header package created '/tmp/kernel-headers.tar.gz'
visit https://krnlbld.r1soft.com/ to do an offline module build
After it is complete, you will need to copy the module to /lib/modules/r1soft