Sun Open Telecommunications Platform 2.0 Administration Guide

Backing Up Sun OTP Services

The Sun OTP backup process is component specific. Sun OTP copies and creates the required configuration for backup. You can back up individual Sun OTP services or all running Sun OTP services. The backup and restore process uses the installation framework for its implementation. Therefore, you cannot back up the Sun OTP services that run on the remote host.

ProcedureTo Back Up the Sun OTP Services

Perform this procedure only from the global zone even when Sun OTP security service is running in the non-global zone.

Before You Begin

In a clustered system, ensure that the Sun OTP service that needs to be backed up is running on the current Sun OTP host.

  1. Log in as root (su - root) to the Sun OTP host.

  2. Determine the Sun OTP services that you want to back up.

    • To back up all the running Sun OTP services, type:

      /opt/SUNWotp/cli/backup_otp -o backupdirectory -l logfile

      backupdirectory is a directory name on the Sun OTP host. This directory can be any valid NFS path name that can be accessed by the Sun OTP host with write permission. The back up data is stored in a tar file under this backup directory.

      logfile is the name of the log file that contains the output of the backup operation.

    • To back up the Sun OTP high availability service, type the following command:

      /opt/SUNWotp/cli/backup_otp -c h -o backupdirectory -l logfile

    • To back up the Sun OTP system management service, type the following command:

      /opt/SUNWotp/cli/backup_otp -c m -o backupdirectory -l logfile

    • To back up the Sun OTP application provisioning service, type the following command:

      /opt/SUNWotp/cli/backup_otp -c p -o backupdirectory -l logfile

    • To back up the Sun OTP security service, type the following command:

      /opt/SUNWotp/cli/backup_otp -c s -o backupdirectory -l logfile

Data Backed Up By the Backup Plan

The following table lists the data that is backed up by the backup plan.

Table 1–2 Data Backed Up By the Backup Plan

Sun OTP Service 

Data Backed Up 

Sun OTP registry files 

/var/OTP directory

Sun OTP high availability service 

/etc/cluster directory

Sun OTP application provisioning service 

Database, plug-in, and SPS database data, and custom tasks data 

Sun OTP system management service 

Configuration files and SCS database 

Sun OTP security service 

/opt/SUNWotp/accessmgr directory

/var/opt/SUNWotp/webserver/local-server/web-app directory

/var/opt/SUNWotp/config/alias file

/var/opt/SUNWotp/webserver/admin-server/config-store/ directory

/etc/opt/SUNWotp/web-sso file

/opt/SUNWjass/Drivers/sunotp driver

Instance of the Directory Server. 

ProcedureTo Back Up Sun OTP Services at Scheduled Intervals

You can perform scheduled backup of the Sun OTP services. For more details, crontab(1).

  1. Open the crontab file.

  2. To back up Sun OTP services at 1 a.m. each Saturday, for example, add the following line to the crontab file.

    0 1 * * 6 /opt/SUNWotp/cli/backup_otp -o /var/otp/backup -l /var/otp/backup.log

    In this example, the backup tar files are stored in the /var/otp/backup directory.

  3. To automatically delete old backup tar files at 1 a.m. each Sunday, for example, add the following line to the crontab file.

    0 1 * * 7 find /var/otp/backup -name '*.tar' -mtime +10 -exec /bin/rm -f {} \;

    In this example, the backup tar files are stored in the /var/otp/backup directory.