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.
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.
export LD_LIBRARY_PATH=/app/clarity/lib
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
Obtain the installation files after the backup is complete.