Sun Open Telecommunications Platform 2.0 Administration Guide

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.