Backing up the database
You can manually create backup files of the BMC AMI Ops Insight database to preserve snapshots of your data, or you can schedule regular automatic backups of the database.
Back up files are displayed on the list on the Backup page. The following details are displayed:
Column | Description |
---|---|
Description | Name of the backup file with the description underneath |
Directory Name | USS directory name where the backup of the database is stored You must have write access for this path and sufficient space to store the data. |
Created | Date and time the backup file was created and the user who initiated the backup |
To manually back up your database
- Click the Administration icon
in the title bar.
- Click Settings > Backup in the menu on the left side.
- Click
.
In the New Backup dialog, enter the Directory Name, and Description.
- Click
.
To configure automatic database backups
- In < Installation_Directory >/amipdt/bin, open the amipdt.properties file.
- Scroll down to the AMI Manager DB Clean Config section.
Set the following parameters:
Parameter
Description
db_backupTurns automatic backup on or offValid values are:
- true
- false
Default value is true.
db_backup_timeCron expression indicating the time of day to run the automatic backup
You can use an online cron expression generator with the following adaptations:
- Make sure your cron expression only has six elements. If there is a seventh element, remove it.
- Replace spaces with underscores.
The default value is to run at five minutes after midnight every day and is displayed as in the following example:
# At 00:05:00am every day
db_backup_time=0_05_0_?_*_*db_backup_directoryParent directory for your database backups
Each backup is stored in its own directory within this parent directory.
AMI Manager must have write access to the parent directory.
If you don't set a parent directory, the application creates a default backup directory in <Installation_Directory>/amipdt/dbBackups.
db_backup_countThe number of automatic backups to keepIf you have the maximum number of automatic backups, each time a new automatic backup runs, the oldest existing automatic backup is deleted.
Default: 2
- Save the amipdt.properties file.
- Restart AMI Manager for your changes to take effect.
To restore your database from a backup
- On z/OS, shutdown the AMI Manager started task. This also shuts down MLeap and the database.
- Delete all files and directories from <Installation_Directory>/amipdt/pdtdb/repos/.
- Copy the files from the desired backup directory into the <Installation_Directory>/amipdt/pdtdb/repos/ directory.
- On z/OS, restart the AMI Manager started task. This also restarts the MLeap and the database.
After restoring the database, you can connect to it as usual.