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:
- % cd <JTK_INSTALL>
<JTK_INSTALL> is the location of the JUNOScope installation.
- % ./jtk/rc.d/jtk stop
- % ./jtk/rc.d/mysql start
- % ./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
- %./jtk/rc.d/mysql stop
- %cd <JTK_INSTALL>/data
- % 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
- %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.
- % ./jtk/rc.d/jtk start