[Contents] [Prev] [Next] [Index] [Report an Error]

Restoring JUNOScope Application Data

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

To restore the JUNOScope application data, follow these steps:

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

    <JTK_INSTALL> is the location of the JUNOScope installation.

  2. Shut down the JUNOScope server:
    % ./jtk/rc.d/jtk stop
  3. Start the JUNOScope MySQL database:
    % ./jtk/rc.d/mysql start
  4. Restore the contents of the JUNOScope MySQL database:
    % ./mysql/bin/mysql --socket=data/db/mysql.sock
    --user=root
    --password=pw
    < /path-to-backup/junoscope-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 JUNOScope MySQL database:
    %./jtk/rc.d/mysql stop
  6. Change directories to where the JUNOScope 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 / junoscope-data-backup.tar

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

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

 


[Contents] [Prev] [Next] [Index] [Report an Error]