Data Migration Guide for CiscoWorks LAN Management Solution 2.5.1
Appendix B: Syntax and Usage for backup.pl

Table Of Contents

Syntax and Usage for Backup Script


Syntax and Usage for Backup Script


You can use the backup.pl script to manually backup LMS data.

The syntax for backup.pl is as follows:

Solaris

NMSROOT/bin/perl NMSROOT/bin/backup.pl BKP Logfile num_generations

Windows

NMSROOT\bin\perl NMSROOT\bin\backup.pl Logfile BKP num_generations

Where:

NMSROOT is the environment variable containing full pathname of Common Services installation directory (by default, /opt/CSCOpx for Solaris, and C:\Program Files\CSCOpx for Windows).

BKP is the backup directory, into which you have used backup.pl to back up data for Campus Manager, RME, and DFM at the same time.

The data will be stored in the directories BKP/0, BKP/1, and BKP/2 etc., where BKP/n stores the data of the (n+1)th generation. If generations 0 through 5 exist, then 5 will be the latest.


Note On LMS 2.1, the backup directory must exist before running backup.pl, otherwise you will see an error.


Example

Backing up data to the directory backup:

Solaris

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

Windows

C:\Program Files\CSCOpx\bin\perl C:\Program 
Files\CSCOpx\bin\backup.pl\backup