Backing up the database
To manually back up your database
- Click the Administration icon
in the title bar.
- Click General 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 >/aoidata/aoiinst/conf, open the amipdt.properties file.
- Scroll down to the BMC 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_?_*_*{{id name="Backingupthedatabase-db_backup_directory"/}}
db_backup_directoryAbsolute path of the Parent directory for your database backups
Each manual and automated backup is stored in its own directory within this parent directory.
BMC 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>/aoidata/aoiinst/backups.
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 BMC AMI Manager for your changes to take effect.
To restore your database from a backup
- On z/OS, shutdown the BMC AMI Manager started task. This also shuts down MLeap and the database.
- Delete all files and directories from <Installation_Directory>/aoidata/aoiinst/db/repos/.
- Copy the files from the desired backup directory into the <Installation_Directory>/aoidata/aoiinst/db/repos/ directory.
- On z/OS, restart the BMC AMI Manager started task. This also restarts the MLeap and the database.
After restoring the database, you can connect to it as usual.