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:
$JTK_INSTALLis the location of the JUNOScope installation.
- Shut down the JUNOScope server:
% ./jtk/rc.d/jtk stop- Start the JUNOScope MySQL database:
% ./jtk/rc.d/mysql start- 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%./mysql/bin/mysql --socket=data/db/mysql.sock--user=root--password=foobar< /opt/backups/jnscp/dbdump.sql
- Stop the JUNOScope MySQL database:
% ./jtk/rc.d/mysql stop- Change directories to where the JUNOScope application data is stored:
% cd $JTK_INSTALL/data- 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- 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.