Sun Update Connection - Enterprise 1.0 Administration Guide

Shared Resources Server Backup and Restore

If managed hosts use shared resources, perform the following tasks in addition to the previous procedures. Unless otherwise stated, do the tasks on the system dependency server system.

ProcedureTo Back Up Files for Shared Resources

  1. Change to the install directory.

    # cd /usr/local/uce/install

  2. Create the console subdirectory.

    mkdir console

  3. Create the agent subdirectory.

    mkdir agent

  4. From the console system, copy the console’s .uce.rc file to the new console directory on the system dependency server system.

    cp ~/.uce_console/.uce.rc /usr/local/uce/install/console

  5. From a managed host, copy an agent’s .uce.rc file to the new agent directory on the system dependency server.

    cp /opt/uce/agent/bin/.uce.rc /usr/local/uce/install/agent

  6. Run the backup script.

    ./backup.sh

    The .uce.rc files of the consoles and agents contain the parameter that enables shared resources support. These parameters are included in the backup.

ProcedureTo Restore Shared Resource Files

  1. Execute the restore script.


    # ./restore.sh
    
  2. Change to the installation directory.


    # cd /usr/local/uce/install
    
  3. If the agents or consoles were changed after backup, reinstall them using the new console-date.tar.gz and agent-date.tar.gz files. Do not open the console or start agents.

  4. Overwrite the newly installed .uce.rc file of the console with the file that was backed up.

    cp /usr/local/uce/install/console/.uce.rc ~/.uce_console/.uce.rc

  5. Stop the agents. On each managed host.


    # /etc/init.d/uce_agent stop
    
  6. Overwrite the newly installed .uce.rc file of the agent on each managed host: /opt/uce/agent/bin/.uce.rc with the file backed up on the SDS: /usr/local/uce/install/agent/.uce.rc

  7. On each managed host, start the agents.


    # /etc/init.d/uce_agent start
    

    All affected systems are restored to their exact condition of the time of the backup.