Technical Documentation

Backing Up the Database

You can make a backup copy of the Junos Space database and, at a later time, use the backup file to restore the Junos Space database to a previous state. When you perform a backup, Junos Space backs up the entire database. The database backup file contains configuration data for managed nodes, managed devices, deployed services, scheduled jobs, Junos Space users, and so forth.

You can perform local and remote backup and restore operations. You perform a local backup to copy the backup file to the default directory /var/lib/mysql/backup. You perform a remote backup to copy the backup file to remote network hosts or media.

This topic includes the following tasks:

Backing Up the Database to a Local Directory

To back up the Junos Space database to a local directory:

  1. From the task ribbon, select the Administration workspace.
  2. From the task ribbon, select the Manage Databases icon.

    The inventory panel displays thumbnails for all existing database backup files.

  3. From the task ribbon, select the Backup Database icon.

    The Backup Database dialog box is displayed.


    Image s600176.gif
  4. In the Mode field, select local to back up the Junos Space database to the default directory /var/lib/mysql/backup.
  5. Optional: In the Comment field, add a comment to describe or otherwise identify the backup operation.
  6. Schedule the Junos Space database backup operation:

    • Clear the Schedule at a later time check box (the default) to initiate the database backup when you complete Step 7.
    • Select the Schedule at a later time check box to specify a later start date and time for the database backup.

    Note: The selected time in the scheduler corresponds to Junos Space server time but using the local time zone of the client computer.

  7. Click Backup.

    The database is backed up. The Order Information window is displayed.


    Image s600403.gif
  8. Optional: To view job details for the database backup, click on the Job Id in the Order Information window.

    Junos Space displays the View Job Details window.


    Image s600404.gif
  9. Click OK.

    The Junos Space database backup is displayed in the Manage Databases inventory panel.

Backing Up the Database to a Remote Host

To back up the Junos Space database to a remote host:

  1. From the task ribbon, select the Administration workspace.
  2. From the task ribbon, select the Manage Databases icon.
  3. From the task ribbon, select the Backup Database icon.

    The Backup Database dialog box is displayed.


    Image s600402.gif
  4. In the Mode field, select remote from the drop-down menu.
  5. Enter a valid user name to access the remote host server.
  6. Enter a valid password to access the remote host server.
  7. Reenter the password you entered in the previous step.
  8. Enter the IP address of the remote host server.
  9. Enter a directory path on the remote host server for the database backup file.

    Note: The directory path must already exist on the remote host server.

  10. Optional: Add a comment to describe or otherwise identify the backup operation.
  11. Schedule the Junos Space database backup operation:

    • Clear the Schedule at a later time check box (the default) to initiate the database backup when you complete Step 12.
    • Select the Schedule at a later time check box to specify a later start date and time for the database backup.

    Note: The selected time in the scheduler corresponds to Junos Space server time but using the local time zone of the client computer.

  12. Click Backup.

    The Order Information window is displayed.


    Image s600403.gif
  13. Optional: To view job details for the database backup, click on the Job Id in the Order Information window.

    Junos Space displays the View Job Details window.


    Image s600404.gif
  14. Click OK.

    When the backup operation finishes, the Junos Space database backup file is displayed in the Manage Databases inventory panel.


Published: 2009-12-16