Restoring Junos Scope Application Data

You should restore the Junos Scope application data when the operational activities of the Junos Scope server are at a minimum, We recommend that you restore the database and data repositories simultaneously to ensure data consistency between the Junos Scope router configuration repository and the MySQL database.

To restore the Junos Scope application data, follow these steps:

  1. Change directories to where the Junos Scope software is installed:
    % cd <JTK_INSTALL>

    <JTK_INSTALL> is the location of the Junos Scope installation.

  2. Shut down the Junos Scope server:
    % ./jtk/rc.d/jtk stop
  3. Start the Junos Scope MySQL database:
    % ./jtk/rc.d/mysql start
  4. Restore the contents of the Junos Scope MySQL database:
    % ./mysql/bin/mysql --socket=data/db/mysql.sock --user=root --password=pw < /path-to-backup/Junos Scope-db-backup.sql

    For example:

    % ./mysql/bin/mysql --socket=data/db/mysql.sock --user=root --password=foobar < /opt/backups/jnscp/dbdump.sql
  5. Stop the Junos Scope MySQL database:
    %./jtk/rc.d/mysql stop
  6. Change directories to where the Junos Scope application data is stored:
    %cd <JTK_INSTALL>/data
  7. Restore the contents of the CVS repository and other data directories:
    % mv cvsroot cvsroot.old% mv archivedreports archivedreports.old% mv images images.old%mv access-methods.xml access-methods.xml.old %cd <JTK_INSTALL>/tomcat/work/Standalone/localhost/jtk/cocoon-files %mv cvs-top cvs-top.old
  8. Restore the CVS repository from an earlier backup or extracting from an existing tar file:
    %cd <JTK_INSTALL>/data % tar xf / path-to-backup / Junos Scope-data-backup.tar

    < path-to-backup > is the directory where the backup is stored. < Junos Scope-data-backup.tar > is the name of an existing backup tar file.

  9. Restart the Junos Scope server:
    % ./jtk/rc.d/jtk start