Data Migration Guide for LAN Management Solution 3.0
Appendix B: Syntax and Usage for Restore and Backup Script

Table Of Contents

Syntax and Usage for Restore and Backup Script


Syntax and Usage for Restore and Backup Script


You can use the restorebackup.pl script to restore the LMS data you have
backed up.

You must stop all services and processes before running restorebackup.pl.


Note Cross platform restore is not supported. That is, you cannot restore data from a Solaris installation of LMS to a Windows installation and vice-versa.


The syntax for restorebackup.pl is as follows:

Solaris

NMSROOT/bin/perl NMSROOT/bin/restorebackup.pl -d BKP [-t temporary_directory] -h

Windows

NMSROOT\bin\perl NMSROOT\bin\restorebackup.pl -d BKP [-t temporary_directory] -h

where:

NMSROOT—(Required) Environment variable containing full pathname of Common Services installation directory (by default, /opt/CSCOpx in Solaris, and C:\Program Files\CSCOpx in Windows where C: is the System Drive).

-t temporary_directory—(Optional) This is the directory or folder used by the restore program to store its temporary files. By default this directory is NMSROOT/tempBackupData. You can customize this by specifying your own temporary directory to avoid overloading NMSROOT.

-d BKP—(Required) The backup directory to use.

-h—(Optional) Provides help. When used with -d BackupDirectory, show s correct syntax along with available suites and generations.

Examples

To restore...
Enter this command in Solaris
Enter this command in Windows

The latest version of data

opt/CSCOpx/bin/perl 
opt/CSCOpx/bin/restorebackup.p
l -d BKP 
C:\Progra~1\CSCOpx\bin\perl 
C:\Progra~1\CSCOpx\bin\ 
restorebackup.pl -d BKP 

The 12th generation of data

opt/CSCOpx/bin/perl 
opt/CSCOpx/bin/restorebackup.p
l -d BKP 
C:\Progra~1\CSCOpx\bin\perl 
C:\Progra~1\CSCOpx\bin\ 
restorebackup.pl -d BKP 

Data from the forced auto backup during the CS upgrade process

opt/CSCOpx/bin/perl 
opt/CSCOpx/bin/restorebackup.p
l 
-d DB_BKP/automaticbackup/cm
fbackup 
C:\Progra~1\CSCOpx\bin\perl 
C:\Progra~1\CSCOpx\bin\ 
restorebackup.pl -d 
DB_BKP\automaticbackup\cmfbackup