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

Table Of Contents

Syntax and Usage for Restore Script


Syntax and Usage for Restore Script


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

For a successful restoration of backedup data, ensure that all services and processes are up and running. Stop the daemons and then run 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 -gen

Windows

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

The following table lists the explanation for the syntax:

Syntax
Explanation
NMSROOT—(Required)
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
-gen generationNumber—(Optional)
This is the generation number. -gen now is the latest 
generation. If generations 1 through 5 exist, then 5 is the 
latest. 
-d BKP—(Required)
The backup directory to use
-h—(Optional) 
Displays 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 -gen now
C:\Progra~1\CSCOpx\bin\perl 
C:\Progra~1\CSCOpx\bin\ 
restorebackup.pl -d BKP -gen now

The 12th generation of data

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

Data from the forced auto backup during the CS upgrade process

opt/CSCOpx/bin/perl 
opt/CSCOpx/bin/restorebackup.p
l 
-d DB_BKP1 /automaticbackup/c
mfbackup -gen now
C:\Progra~1\CSCOpx\bin\perl 
C:\Progra~1\CSCOpx\bin\ 
restorebackup.pl -d 
DB_BKP\automaticbackup\cmfbackup 
-gen now

1 DB_BKP is the backup directory created by the user.