View Source

Hot Copy is comprised of the hcp command line utility and the R1Soft Hot Copy snapshot device driver. Refer to the [System Requirements|LTR1D:System Requirements - Hot Copy] before proceeding with the installation.

To install Hot Copy, perform the following steps:

h2. 1. Download the appropriate Hot Copy installer for your Linux distribution.

The Hot Copy install .zip file can be accessed using the following link: [http://repo.r1soft.com/trials/R1soft-hotcopy.zip|http://repo.r1soft.com/trials/R1soft-hotcopy.zip] 

h2. 2. Install Hot Copy using one of five available installation packages. 

When installing the hcp command line utility binary, R1Soft provides apt, yum, tar, .deb, and .rpm installation methods for both 32-bit (i386) and 64-bit (AMD64) architectures.
{note}You must be the root user to install and use Hot Copy.
{note}

h4. RPM Install

{color:#333333}{_}Install the .rpm Hot Copy package for 32-Bit Linux:_{color}
{code}
# rpm -i latest-hotcopy-x32.rpm
{code}
_Install the .rpm Hot Copy package for 64-Bit Linux:_
{code}
# rpm -i latest-hotcopy-x64.rpm
{code}

h4. APT (.deb) Package Install

{color:#333333}{_}Install the .deb Hot Copy package for 32-Bit Linux:_{color}
{code}
# dpkg -i latest-hotcopy-x32.deb
{code}
_Install the .deb Hot Copy package for 64-Bit Linux:_
{code}
# dpkg -i latest-hotcopy-x64.deb
{code}

h4. APT Repository Installation

{color:#333333}To install Hot Copy with apt, first modify your{color} {color:#0000ff}/etc/apt/sources.list{color} {color:#333333}to include the R1Soft repository, and download the R1Soft apt gpg key.{color}
{code}
# echo deb APT_REPO_URL_PROVIDED_IN_REGISTRATION_EMAIL beta main >> /etc/apt/sources.list
# wget APT_RSA_KEY_URL_PROVIDED_IN_REGISTRATION_EMAIL
# apt-key add r1soft.asc
# apt-get update
# apt-get install r1soft-hotcopy
{code}

h4. Yum Repository Installation

{color:#333333}To install Hot Copy with yum, create a yum repo file with the R1Soft repository information inside of it.{color}

First, create the repo file in your {color:#0000ff}yum.repos.d{color} directory. This is usually found in {color:#0000ff}/etc/yum/yum.repos.d{color}.

Create a file called r1soft.repo:
{code}
# cd /etc/yum/yum.repos.d
# touch r1soft.repo
{code}
Open the file with a text editor like vi or nano:
{code}
# vi r1soft.repo
or
# nano r1soft.repo
{code}
Insert the following text into the file:

*                *\[r1soft\]
                name=R1Soft Repository Server
                baseurl={color:#0000ff}{_}YUM_REPO_URL_PROVIDED_IN_REGISTRATION_EMAIL{_}{color}
                enabled=1   
                gpgcheck=0
{code}
# yum install r1soft-hotcopy
{code}

h4. .tar package

{color:#333333}To install the .tar Hot Copy package at the shell prompt, enter the following: {color}
{code}
tar -xvf r1soft-hotcopy.tar --directory /
{code}

h2. 3. Install the Hot Copy Linux device driver from the pre-built binary package, or build the device driver from source if required.

The Hot Copy device driver is provided as a loadable Linux kernel module.  You do NOT need to re-compile your Linux kernel. 
{note}You need to have loadable modules enabled as a feature in your kernel. This is standard on all popular Linux distributions.
{note}

h4. Install Hot Copy Kernel Module from Kernel Source or Devel Headers

{color:#333333}You will need to install the Hot Copy device driver using your kernel source code or kernel headers using the {color}[hcp-setup command line utility|LTR1D:hcp-setup]{color:#333333}.  See {color}[hcp-setup|LTR1D:hcp-setup]{color:#333333} for more information.{color}

h4. Special Steps If You Are Using 2.0 Continuous Data Protection Linux Agent

{color:#333333}If you are using the CDP 2.0 Linux Agent on this computer, first unload the CDP device drive.  This will fail if you have a running backup task on this Agent.{color}
{code}
# rmmod backupdriver
{code}
For more information, see [LTR1D:Hot Copy and CDP 2.0 Linux Agent]

h2. 4. Enjoy Hot Copy\!

You can now use Hot Copy with the following "hcp" command:
{code}
# hcp /dev/DEVICE
{code}
For information about using the Hot Copy command line utility (hcp), [click here|LTR1D:hcp].


{info:title=Feedback}
Share ways to use Hot Copy, tell us how you incorporate Hot Copy into a script, or report bugs on the R1Soft Forum at [http://forum.r1soft.com].{info}

h2. See Also

[hcp-setup|http://wiki.r1soft.com/display/LTR1D/hcp-setup|hcp-setup], [hcp|LTR1D:hcp], [hcp-device|LTR1D:hcp-device]