Smarts NCM: How to backup and restore the NCM database.
search cancel

Smarts NCM: How to backup and restore the NCM database.

book

Article ID: 331062

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - NCM

Resolution

How do you back-up and or restore the NCM database?



To start the NCM database back-up do the following-
 
-Go to /basedir/smarts-ncm/tools directory:

-Execute:  [root@ tools]# ./backup.pl
 
    Would you like to back up your current data? [y/n] enter y

     Backing up database...
     Backing up files...
     Building backup image file...
     Backup file created: /opt/smarts-ncm/data-image/backup-image-9.2.1.0.48.AS.Jul-18-2014-16.07.tgz

Once the backup has been completed it saves it in the data-image directory.  
 
To restore the back-up file, type the following command:
 
    [root@ tools]# perl restore.pl /opt/smarts-ncm/data-image/backup-image-9.2.1.0.48.AS.Jul-18-2014-
    16.07.tgz
 
Are you sure you want to restore from this backup? [y/n] enter y
(All existing data will be replaced.)
 
Database password:
(You must enter the Database Password for you Environment) 

This will restore your image.