Periodically, when the operational activities of the JUNOScope server are at a minimum, you should back up the JUNOScope application data. We recommend that you back up the database and data repositories simultaneously to ensure data consistency between the JUNOScope router configuration repository and the MySQL database.
![]() |
Note: The database root username and password is mandatory to backup and restore the database using the msqldump command. |
To back up JUNOScope application data, follow these steps:
- % cd <JTK_INSTALL>
- % ./mysql/bin/mysqldump --socket=data/db/mysql.sock
\
-
--user=root \
-
--password=pw \
-
--opt \
-
--all-databases
\
-
> /path-to-backup/junoscope-db-backup.sql
<JTK_INSTALL> is the path of the JUNOScope installation, < pw > is the database root user's password (created during JUNOScope installation, and < path-to-backup/junoscope-db-backup.sql > is the name and location of the backup file you create.
For example:
- % cd <JTK_INSTALL>
- % ./mysql/bin/mysqldump --socket=data/db/mysql.sock/
-
--user=root/
-
--password=foobar /
-
--opt --all-databases /
-
> /opt/backups/jnscp/dbdump.sql
This command example backs up the contents of the MySQL database using the password foobar and creates a file called dbdump.sql in the /opt/backups/jnscp/ directory.
- %cd <JTK_INSTALL>/data
<JTK_INSTALL>/data is the path where the JUNOScope application data is stored,
- % tar cf /path-to-backup/junoscope-data-backup.tarcvsroot
archivedreports images access-methods.xml
< path-to-backup > is the directory where you want to store the backup, < junoscope-data-backup.tar > is the name of the backup tar file to create.