Page tree

This topic describes how to create a complete backup of your BMC Database Automation environment using the clarity_backup.pl script. BMC Software strongly recommends that you create a full backup of your environment before installing a service pack or patch, even if you have a backup strategy in place.

To create a backup

  1. Log into the BMC BladeLogic Database Automation Manager as root by using SSH client (PuTTY).
  2. Navigate to the /app/clarity/manager_scripts/bin directory, where the clarity_backup.pl script is located.
  3. Identify a location for the archive (.zip file) that the utility will create.

    Note

    Ensure that you have adequate amount of storage available for a complete backup.

  4. Set the library path for the script:
    export LD_LIBRARY_PATH=/app/clarity/lib
  5. Run the utility:
    ./clarity_backup.pl --c --l /tmp/clarity_backup.log --d targetBackupDirectory/BackupFilename

    In this syntax, targetBackupDirectory is the directory in which the archive will be created and BackupFilename is the name of the backup .zip file.

    Note

    If you expect the archive to exceed 2 GB, run the command using .tar.gz instead of the .zip.


    When the utility runs successfully, output messages similar to the following are displayed:
    [root@10.100.5.158 bin]#./clarity_backup.pl -c -l /tmp/clarity_backup.log -d /tmp/manager_backup-07_20_11.zip
    WARN    Backup using /tmp/manager_backup-07_20_11.zip
    WARN    Stopping services
    INFO    Extracting postgres data
    INFO    Backing up configuration and state files
    INFO    Cleaning up temporary files
    WARN    Re-starting services:
    WARN    backup Complete

Where to go next

Obtain the installation files after the backup is complete.