NBU 7.0异机恢复Linux备份文件的方法(一)

一、环境
服务端操作系统:windows server 2003
客户端操作系统:CentOS 5
还原svn 服务器的配置为例
二、安装NBU Client for CentOS
[root@cent5-wangleitest1 ~]# cd /usr
[root@cent5-wangleitest1 usr]# mkdir openv
[root@cent5-wangleitest1 ~]# cd /opt/software 
[root@cent5-wangleitest1 software]# mount xxx.iso /mnt �Co loop
[root@cent5-wangleitest1 software]# cd  /mnt
[root@cent5-wangleitest1 mnt]# ./install
Symantec Installation Script
Copyright 1993 - 2007 Symantec Corporation, All Rights Reserved.
         Installing NetBackup Client Software
NOTE:  To install NetBackup Server software, insert the appropriate
        NetBackup Server cdrom.
Do you wish to continue? [y,n] (y) y   // 是否要继续,选择 y
Do you want to install the NetBackup client software for this client? [y,n] (y) y  // 是否要安装 NetBackup 的客户端,选择 y
This package will install Linux/RedHat2.6 client.
This package will install NetBackup client 6.5.
Enter the name of the NetBackup server : backup01 // 输入 NetBackup 服务端的主机名
Would you like to use "cent5-wangleitest1" as the configured name of the NetBackup client? [y,n] (y) y  // 是否使用本机的主机名作为 NetBackup 客户端的名称,这里选择使用本机的名称。
openv/      // 开始进行安装
openv/lib/
openv/lib/map/
openv/lib/map/libdisk.so
openv/lib/map/libemcpower.so
openv/lib/libvxcryptoST.so
openv/lib/vxfi/
openv/lib/vxfi/data/
openv/lib/vxfi/data/vfiid_schema.xsd
openv/lib/vxfi/providers/
openv/lib/vxfi/providers/libdevicefi.so
openv/netbackup/
openv/netbackup/bin/
openv/netbackup/bin/bpbkar
openv/netbackup/bin/private/
openv/bin/
openv/bin/vauth_testd
openv/bin/vopied
openv/var/
openv/var/auth/
openv/var/vnetd/
openv/var/vnetd/inetd_bpcd.txt
openv/var/vnetd/inetd_bpjava-msvc.txt
openv/var/vnetd/inetd_vopied.txt
openv/msg/
openv/msg/.conf
openv/resources/
。。。 。。。
+ /bin/cp NB-Java.tar.Z /usr/openv
Installing NB-Java.
/bin/tar: Read 4096 bytes from -
/bin/tar: Read 8704 bytes from -
+ /bin/cp ./nbj.conf /usr/openv/java
Send a SIGHUP to inetd or xinetd so the (x)inetd.conf file will be reread.
Reloading configuration: [  OK  ]
The following automatic startup and shutdown scripts (respectively)
have been installed.  They will cause the NetBackup client daemons
to be automatically shut down and restarted each time the system boots.
/etc/rc.d/rc2.d/S95nbclient
/etc/rc.d/rc3.d/S95nbclient
/etc/rc.d/rc5.d/S95nbclient
/etc/rc.d/rc0.d/K01nbclient
/etc/rc.d/rc1.d/K01nbclient
/etc/rc.d/rc6.d/K01nbclient
Starting nbftclnt...
LiveUpdate is not installed, skipping registration step...
File /usr/openv/tmp/install_trace.12158 contains a trace of this install.
That file can be deleted after you are sure the install was successful.  // 安装完成。
三、修改hosts 文件
1. 客户端的hosts 文件的修改
[root@cent5-wangleitest1 ~]# vim  /etc/hosts
127.0.0.1               localhost.localdomain localhost cent5-wangleitest1
::1                          localhost6.localdomain6 localhost6
192.168.30.20       backup01
NBU 服务器的解析添加进hosts 文件,将客户端的名称解析为127.0.0.1
2. 服务器端的hosts 文件的修改
用记事本打开C:\Windows\System32\drivers\etc\hosts 文件,将客户端ip 和名称的解析添加的文件中并保存。
四、修改客户端SELinux
[root@cent5-wangleitest1 ~]# vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled // 修改为禁用
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted
[root@cent5-wangleitest1 ~]# chcon -t textrel_shlib_t /usr/openv/lib/libnbmangle.so
[root@cent5-wangleitest1 ~]# chcon -t textrel_shlib_t /usr/openv/lib/libvxPBXCommon.so
[root@cent5-wangleitest1 ~]# chcon -t textrel_shlib_t /usr/openv/lib/libvxPBX.so
[root@cent5-wangleitest1 ~]# chcon -t textrel_shlib_t /usr/openv/lib/libvxPBXVxSS.so
[root@cent5-wangleitest1 ~]# chcon -t textrel_shlib_t /usr/openv/lib/libvxVxSSIOP.so
[root@cent5-wangleitest1 ~]# chcon -t textrel_shlib_t /usr/openv/lib/libnbservice.so
[root@cent5-wangleitest1 ~]# cd /usr/openv/netbackup/bin/bp.start_all
[root@cent5-wangleitest1 ~]# vim /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 34180 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 61618 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 13000 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 13724 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 17328 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 13782 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 13783 -j ACCEPT
[root@cent5-wangleitest1 ~]# init 6


你可能感兴趣的:(linux,7.0,NBU)