R1Soft CDP is a easy to install and use continous data protection
system, primarily targeted at the hosting market. It backups up
multiple servers to a central backup server; multiple backup windows
can be performed per day, and files or even the whole disk can be
restored from the image. This tutorial will show you how to install the Linux Agent on a server which you want to be backed up, and how to
First, login to the new server as root. Then browse to the following page:
Click on the Linux Stable link under CDP Agent, and copy the link location of the latest CentOS agent.
Now, go back to the server, and execute the following command:
For 64bit CentOS : wget http://download.r1soft.com/d/linux-agent/1.46.5-x86_64/linux-agent-64-1.46.5-centos.run
For 32bit CentOS : wget http://download.r1soft.com/d/linux-agent/1.46.5-x86/linux-agent-32-1.46.5-centos.run
for newer kernels go to the Pre
The link will look different depending on the release you download. Once this has finished, execute the file:
If you are installing a custom kernel then you need to install the headers first
yum install kernel-devel
A graphical wizard will appear. Just go through here accepting the defaults; they usually work fine. Once this is done, we need to create the server key. Browse to the following directory:
Now create a file called the IP of your main backup server.
nano 111.222.333.444 (Your backup server IP)
Browse to your main backup server, login as administrator, click on Options, then click on Server Key. You need to copy this key into the file you just created on the server to be backed up. Once this is done, save the file. The path to the file should look like this:
One last thing to do; open up TCP port 1167 on the server firewall. This can easily be done through a iptables frontend like csf, or just use iptables via the command line.
Everything is now completed on the server to be backed up; now you just need to add it in the CDP interface. Login as administrator and click on the New Host button.
Now fill out the form like this:
Host Name or IP: The IP address/hostname of the server you just installed the agent on.
Host Description: A description of the server you installed the agent on
Host Type: Select “Linux”
Tick the Use Default Network Settings box
In the “Licensed Add-on Modules” section, you need to tick the Control Panel option if you want CDP to integrate with a hosting
control panel (like cPanel or Plesk), and you need to tick the MySQL module if you want CDP to perform a proper granular (table by
table) backup of the databases on the server.
Now select the Volume you want the server to place the backups in, check the “Create Disk Safe Next” box, and click on OK.
These settings are usually fine for a standard CDP server setup; however, keep in mind that your server setup may mean that you need to use different settings from the ones listed here.
The next page contains Disk Safe configuration settings.
The first, Compression Level, I would recommend setting to at least 1. Uncompressed backups can use up all the available disk space on your backup server quickly; setting the Compression Level to 1 can reduce backup size by up to 50% without too significant a hit on CPU consumption. Leaving the Defragment setting at 5% is fine.
I would not recommend encryption unless the data you are backing up sensitive data. Now click on OK.
You should now be directed to the host summary page. CDP automatically attempts to find the host; click on History at the top and see if it was succesful or not.
If it was, you can now start the first backup and setup a recurring backup schedule to your liking in the Backup and Restore tab in the host’s page.
Here is a brief overview of setting up a recurring backup schedule:
1. Login to CDP as admin
2. Click on the Host
3. Click on the “Backup and Restore” option
4. Click on “Schedule Backup”
Now fill out the settings to your liking. Do backup the swap partition (CDP will skip it anyway), disable the tmp partition. If you have a second hard drive for backups (for example, for cPanel backups), do not include it.
If you now need to setup a granular MySQL backup using the MySQL addon, click on the MySQL button.
Fill out the description and the root username and password of your
MySQL server. I recommend changing the Connection Type to Socket File –
the default socket file location on CentOS servers is:
CDP will now backup your MySQL databases table by table in line with your backup schedule.
All done, you have setup a Linux server to be backed up by R1soft :)