Data Migration Guide for LAN Management Solution 3.2
Appendix A: Syntax and Usage for Backup Script

Table Of Contents

Syntax and Usage for Backup Script


Syntax and Usage for Backup Script


You can take a manual backup using the following syntax:

 
LMS 2.6/LMS 2.6 SP 1
LMS 3.0/LMS 3.0 December 2007 Update/LMS 3.1
Syntax
wrapper.pl
backup.pl
On Solaris
NMSROOT/bin/perl dir1/wrapper.pl 
BKP Logfile
NMSROOT/bin/perl 
NMSROOT/bin/backup.pl BKP 
[Logfile] [Num_Generations]
On Windows
NMSROOT\bin\perl dir1\wrapper.pl 
BKP Logfile
NMSROOT\bin\perl 
NMSROOT\bin\backup.pl BKP 
[Logfile] [Num_Generations]

You can take selective backup using the following syntax:

 
LMS 3.2
Syntax
backup.pl
On Solaris
/opt/CSCOpx/bin/perl /opt/CSCOpx/bin/backup.pl 
-dest=BackupDirectory -system [-log=LogFile] [-gen=Num_Generations]
On Windows
NMSROOT\bin\perl NMSROOT\bin\backup.pl 
-dest=BackupDirectory -system [-log=LogFile] [-gen=Num_Generations]

The following table lists the explanation for the syntax:

Syntax
Explanation
NMSROOT
Common Services installation directory (by default, /opt/CSCOpx 
for Solaris, and C:\Program Files\CSCOpx for Windows, where C: 
is the System Drive)
dir1 
Directory where you have extracted wrapper.pl
BKP
Backup directory where you have backed up data using wrapper.pl 
or backup.pl
Logfile

Log file name that contains the details of the backup. The default location of the backup log file (dbbackup.log) is:

NMSROOT\CSCOpx\log\ (On Windows)

/var/adm/CSCOpx/log/ (On Solaris)

BackupDirectory

Directory that you want to be your Backup directory.

Num_Generations

Maximum backup generations to be kept in the backup directory.


Example 1

To back up LMS 2.6 or LMS 2.6 SP1 data in the backup directory, enter:

On Solaris:

opt/CSCOpx/bin/perl /wrapper/wrapper.pl /backup

On Windows:

C:\Progra~1\CSCOpx\bin\perl C:\wrapper\wrapper.pl C:\backup

Example 2

To back up LMS 3.0 or LMS 3.0 December 2007 Update data in the backup directory, enter:

On Solaris:

opt/CSCOpx/bin/perl /opt/CSCOpx/bin/backup.pl /backup

On Windows:

C:\Progra~1\CSCOpx\bin\perl C:\Progra~1\CSCOpx\bin\backup.pl C:\backup

Example 3

To specify a different location for the log file during a manual backup of LMS 2.6 or LMS 2.6 SP1, enter:

On Solaris:

NMSROOT/bin/perl dir1/wrapper.pl BKP backup/log/dbbackup.log

On Windows:

NMSROOT\bin\perl dir1\wrapper.pl BKP C:\backup\log\dbbackup.log