Backup Exec: Transfer scheduled jobs, database and settings to a new backup server

Well… it’s quite easy especially if you are keeping the same server name (skip the SQL commands below and go right to transfer section). If not you will have to change your SQL instance name accordingly.

Start here if you’re changing the server name, otherwise skip the SQL commands below:

Open command prompt and type the following:
osql -E -S servername\BKUPEXEC
use bedb
UPDATE DataPartition SET PartitionName='SERVERNAME' WHERE PartitionID = 0
SELECT partitionname FROM datapartition

Then proceed with tranferring your db over to the new server. Two folders under Backup Exec installation folder are needed: Data and Catalogs. After backing up your current folders:

Stop all Backup Exec services. I’d open the console and go to Tools – Backup Exec Services and stop all.
Stop all SQL services in services console.
Copy the above folders to your new server and overwrite all existing files.
Run BEUtility.exe under Backup Exec folder. You will be prompted not to use the utility without supervision… right! Just click it away.
In the left pane click on All Media Servers, and in the right pane right click on your server name and click Copy Database.
Browse to bedb_dat.mdf (database file) and bedb_log.ldf (database log file) you just copied over from the old server.
Click OK and proceed with the transfer.

BEUtility will transfer your settings and detach/attach your database and start your BE services automatically. If not then start them manually.

If you don’t see an error message about unsuccessful db detach/attach and your services start in timely fashion then you should be able to see all your jobs, media, devices and even settings and encryption keys transferred to the new server.

Debian: Symantec Backup Exec 12 and Debian Etch 32/64

A quick note for users of BE 2010 and later: deb packages are now included with the product and you no longer need to user alien to convert from rpm. There is also an installer included with the product but you still HAVE TO install the deb package separately FIRST. Then run the installer “./installralus” from RALUS_RMALS_RAMS-xxxxxversion.tar.gz (yep, I assume you know that you’ll have to untar the archive, yada yada yada. Don’t forget to install libstdc++5 while you’re at it!).

Now for BE 12 and earlier

To install Symantec Backup Exec 12 agent under Debian Linux (32 and 64 bit). Version numbers have been masked with “xxx” to make it a general post.

Find the appropriate agent from the installer CD or download the latest version from Symantec website. 32 bit packages are normally under /Linux/RALUSx86/pkgs/Linux and 64 bit under /Linux/RALUS64/pkgs/Linux. Both packages must be properly installed: VRTSralus and VRTSvxmsa.

To untar:
tar -zxvf VRTSralus.tar.gz
tar -zxvf VRTSvxmsa.tar.gz

Symantec provides rpm packages so we will have to convert them to deb. If you don’t have the package “alien” installed use the command “aptitude install alien” to install the package.

Converting rpm to deb:
alien --scripts VRTSralus-xxx.rpm
alien --scripts VRTSvxmsa-xxx.rpm

(64 bit packages end with x86-64.rpm).

Installing deb packages:
dpkg -i vrtsralus-xxx-.deb
dpkg -i vrtsvxmsa-xxx-.deb

RALUS runs under a backup user called beoper. Go ahead and add the user/group and give it root access:
addgroup beoper
adduser root beoper

Before loading the agent for the first time install the following packages:
aptitude install libstdc++5
for 64 bit Debian you will need an additional package:
aptitude install ia32-libs
Now load the agent for the first time to have it create your configuration file. Backup Exec installation will copy your init script to /opt/VRTSralus/bin/VRTSralus.init. Either run it directly from there or create a symbolic link where your other scripts are:
ln -s opt/VRTSralus/bin/VRTSralus.init /etc/init.d
Load the agent:
/etc/init.d/VRTSralus.init start
OK confirms that your script ran properly, and if you followed my direction it should. Now kill the process
/etc/init.d/VRTSralus.init stop
and go open the configuration file
nano /etc/VRTSralus/ralus.cfg

Insert the following string and replace the IP to match your media server’s:

Software\Symantec\Backup Exec For Windows\Backup Exec\Engine\Agents\Agent Directory List_1=
I have highlighted what I think is important: agent advertising option and your media server IP. Make sure they are correct and if you don’t have any of those lines go ahead and add them to your config file.

Save/close the file and re-run your agent. You’re all set! If you like to have the agent run every time your box reboots navigate to /etc/init.d/ and:
update-rc.d -f VRTSralus.init defaults
Note that Backup Exec 12.5 comes with a pre-compiled .deb package. Hooray for Symantec!