Sun Update Connection - Enterprise 1.0 Administration Guide

Server Backup and Restore

Schedule a daily run of the backup script, and save the resulting archive in a secure magnetic media external from the SDS system. A faithful backup procedure allows for full disaster recovery.

Backing Up the System Dependency Server

This task explains what happens when you run the backup script. The backup.sh script is in the installation directory created when you first installed the system dependency server: /usr/local/uce/install.

ProcedureTo Back Up the System Dependency Server

  1. Log in to the system as superuser.

  2. Change to the installation directory.

    # cd /usr/local/uce/install

  3. Run the backup script.

    # ./backup.sh

Backup Archive

The following steps are performed automatically:

  1. Sun Update Connection – Enterprise applications are stopped.

  2. The backup script verifies that the local system is the system dependency server.

  3. The data in the following directories and files are saved under backup names:

    • /usr/local/uce/server/public/* - Universal rules and components

    • /usr/local/uce/server/private/* - Local rules and components

    • /usr/local/uce/engine/*/bin - Settings files and encryption keys

    • /usr/local/uce/install/* - Application installers, restore and support scripts

  4. The databases are backed up and the backup files are stored in a tar file. The file name includes the year, month, day, hour, and minute that the backup was created./usr/local/uce_backup/backup-<yyyy-mm-dd-hh-mm>.tar.gz

  5. Sun Update Connection – Enterprise applications are restarted and backup exits.


Example 8–1 Backup Archive File

The following backup archive contains the contains local and universal knowledge base and console data for June 25, 2003, 1:07 p.m.

/usr/local/uce_backup/backup-2003-06-25-13-07.tar.gz


Restoring the System Dependency Server

This task explains what happens when you run the restore script. The restore.sh script is in the /usr/local/uce/install directory.


Caution – Caution –

Once you select a file to restore, all current Sun Update Connection – Enterprise data is overwritten. Before restoring an older version, you should perform the backup procedure for the current data.


ProcedureTo Restore the System Dependency Server

  1. Log in to the system as superuser.

  2. Change to the installation directory.

    # cd /usr/local/uce/install

  3. Run the restore script with a pointer to the desired backup archive.


    # ./restore.sh /<fullpath>/<backedUpServer>.tar.gz
    

    The following steps are done automatically, but require your confirmation before continuing:

    • Sun Update Connection – Enterprise applications are stopped.

    • The selected file is unpacked and the data is restored.

    • Sun Update Connection – Enterprise applications are restarted and restore exits.