View Source

This document provides information on how to move/migrate Server Backup Manager from one physical computer to another.

A Backup Manager migration involves the following elements:
* *Old Computer* \- The physical machine where you have your current Backup Manager installation.
* *New Computer* \- The physical machine to which you are moving (migrating) your Backup Manager.



!Migrating Backup Manager.png!






h5. Why migrate?

Some of the possible reasons why it may become necessary to migrate the Backup Manager:

* Your current computer is having hardware problems and is no longer reliable.
* During backup/restore procedures, it becomes clear that processing power is not sufficient to perform all tasks quickly and reliably; however, the current computer cannot be scaled up any further.
* You need to move the Server Backup Manager from one operating system to another.


----
Follow the instructions below to move/migrate a Server Backup Manager installation to a new computer.

{note:title=Note}

It is assumed that you have prepared a New Computer according to these requirements:
* [System Requirements - Server Backup Manager for Linux|ServerBackup:System Requirements - Server Backup Manager for Linux]


{note}

{toc:location=top|maxLevel=3|minLevel=3|type=list|separator=pipe|style=border:1}

----
h3. Step 1 - Installing a new Backup Manager

First, install Server Backup Manager on the new computer. See:
* [Install Server Backup Manager on Linux].

----
h3. Step 2 - Shutting Down Backup Manager Service

Stop the Backup Manager on the *New Computer*.



h5. Linux Installations

If your Backup Manager is installed on Linux, then the Linux Backup Manager can be stopped using this command:

{code}/etc/init.d/cdp-server stop
{code}


The "cdpserver stopped" message will appear.

!server-stop.png!


h5. Windows Installations

If your Backup Manager is installed on Windows, then the Windows Backup Manager can be stopped via the "Services" utility. Perform the following steps.

1. Click the Windows "Start" button, and then start the "Run" program. The "Run" window will be opened.

Type in the "*services.msc*" command, and then click *OK*.


!Run program.png!

2. The "Services" window will be opened.

!Services window.png!

3. Find the "Backup Manager" service. Right-click on it, and then choose "Stop" in the drop-down menu. The service will be stopped.

!Services window_Service stopping.png!

----
h3. Step 3 - Removing "log," "config," and "data" on the New Computer

Perform the following activities on the *new computer*.




h5. Linux Installations

First, open a terminal program on your Linux computer. Go to the Backup Manager's location, and list all files and folders using these commands:

{code}
cd /usr/sbin/r1soft
ls -al
{code}

Remove the {{log}}, {{config}}, and {{data}} folders using the {{rm}} command:

{code}
rm -rf /usr/sbin/r1soft/data /usr/sbin/r1soft/conf /usr/sbin/r1soft/log
{code}

{info:title=Note}
Use the {{rm \-r}} command with caution; if you mistype the directory, the command will delete everything, without asking for confirmation. Find more information here: [Using rmdir and rm commands|http://www.thegeekstuff.com/2009/06/how-to-linux-delete-directory-using-rmdir-rm-command/]
{info}


!rm-rf.png!


----
h3. Step 4 - Copying "log", "config," and "data" from the Old Computer

In this step, you will copy the "log", "config," and "data" folders from the *Old* Computer to the *New* one.


h5. Linux Installations

If your new computer has an SSH daemon running, you can use the {{scp}} command for copying the "log," "config," and "data" folders:

{code}
scp -r /path/to/folder/ user@targethost:/target/path/
{code}

Explanation of this command:

* */path/to/folder/* \- The Old Computer's path to the folder being copied. By default, it is {{/usr/sbin/r1soft/data/}} for the "data" folder.
* *user* \- The user from the New Computer who has the write permission to the destination folder. In this case, the user is root.
* *targethost* \- The New Computer's hostname or IP address.
* */target/path/* \- The New Computer's path to the folder. By default, this path is "/usr/sbin/r1soft/."

Type this command correctly, and then enter *yes* to confirm that you want to continue connecting. Then enter the user's password.

!scp.png!

Once the folder has been copied, it can be found in the new computer.

!ls-ld.png!


{info:title=Note}
If you are not sure about any part of this step, carefully read the information on this page: [Remote file copy program|http://linux.about.com/od/commands/l/blcmdl1_scp.htm]
{info}

h5. Windows installations

Current versions of the Server Backup Manager are only available for the Linux operating system. In order to copy files and directories from a Windows system to a Linux system, we recommend using a 3rd party SCP utility such as [WinSCP|http://winscp.net/]. This program should be installed on the Old Computer running Windows. Instructions for using the 3rd party utility should be provided by the [vendor|http://winscp.net/eng/docs/start].

First, open the WinSCP program or another file browser, and go to {{C:\Program Files\Idera Server Backup}} (this is the default path, but the Backup Manager may also be located on the {{D:}} drive).

Then, choose the "conf," "data," and "log" folders and *copy* them to the New Computer at "/usr/sbin/r1soft/".


----
h3. Step 5 - Copying the Volumes and Disk Safes to the New Machine

{note:title=Note}
Disk Safes from older versions of the SBM are always compatible with newer SBM installations. Disk Safes from newer SBMs should not be moved to older SBM installations. Contact [R1Soft Support|https://www.r1soft.com/support] if there are any reasons why you may need to move a Disk Safe from a newer SBM to an older SBM version.
{note}

Disk Safes are most commonly stored in Volumes, which appear on the file system as folders containing multiple Disk Safes. Volumes must be copied intact. Disk Safes can also be stored outside Volumes, but this is not recommended by R1Soft.

Ideally, Volumes and Disk Safes will be copied to the same path location between the Old Computer and New Computer. However, Volumes and Disk Safes may be relocated to alternate paths on the New Computer. If the paths have changed, the SBM configuration database will need to be updated to reflect this new path.

To assist with this path modification, R1Soft has produced a command line utility called the *SBM Path Configuration Tool*. 

To use this tool, simply download the .zip archive at [http://repo.r1soft.com/contrib/sbm-pathconf-1.0.zip|http://repo.r1soft.com/contrib/sbm-pathconf-1.0.zip], place the tool inside the "/usr/sbin/r1soft" directory, and follow the instructions contained inside the README file bundled with the tool. 

Further information concerning Disk Safe copying can be found here: [Copy or move Disk Safes]
----
h3. Step 6 - Starting the Backup Manager on the New Computer

Perform the following activities on the *new computer* to which you are going to migrate.

h5. Linux Installations

The Linux Backup Manager can be started using this command:

{code}/etc/init.d/cdp-server start
{code}

!server-start.png!

The "cdpserver started" message will appear.





You can also check whether this service has been started by typing the {{cdp-server status}} command and pressing <Enter>.
{code}/etc/init.d/cdp-server status
{code}
!server-status.png!

----
h3. Step 7 - Reactivating the License key

The License key must be reactivated on the *new computer* to which you are going to migrate.&nbsp;Reactivation is necessary and must be performed to use your Server Backup Manager.


All information concerning the License Key Reactivation can be found here: [Reactivate the Server Backup Manager license]

----
h3. Step 8 - Restarting the Backup Manager on the New Computer

Perform the following activities on the *new computer*. This procedure is performed after the disk safes are copied.

All information concerning the Backup Manager restarts can be found here: [Restart Backup Manager].











{newversion}
1) This procedure is as simple as installing the Backup Manager on the new hardware with the standard installer;
2) Shutting down the Backup Manager service;
3) Removing the "log," "config," and "data" directories;
4) Copying the "log," "config," and "data" directories from other Server;
5) Starting the Backup Manager;
6) Reactivating the License Key;
7) Copying the Disk Safes;&nbsp;
8) Restarting the Backup Manager again after the Disk Safes are copied (can be done piecemeal). Policies will fail if the Disk Safes are not found. The disk safes start running once they appear.
{newversion}

{excerpt:hidden=true}
Instructions on how to migrate Server Backup Manager to another machine.
{excerpt}