Configuring and managing the archiving process
You can configure and manage the archiving process for your system from the AR System Archive Manager console. You can perform the following tasks from the Archive Manager console:
- Enabling and disabling archiving
- Enabling and disabling individual archiving policies
- Changing the frequency of archiving
- Running an on-demand archiving process
- Stopping an archive run after it has started
- Preventing a record from being archived
- Exporting and deleting archived data
To configure archiving for your system
- Log in to Mid Tier as an administrator.
- Select Application > AR System Administration > AR System Archive Manager console.
By default, the Enable Server Group Archiving check box is selected indicating that archiving is enabled. The default frequency of archiving is every 24 hours. - To disable archiving, clear the Enable Server Group Archiving check box.
Even after disabling the archiving process, you can run an on-demand archive against selected records. Learn how to run an on-demand archive in To run an on-demand archive process. - To modify the frequency of archiving, change the value of Run Every (hours).
- To modify individual archival policies for record types, complete the following steps:
- To enable a policy, select it in the Archive Policies table, and click Enable Policy.
The corresponding Custom Specified Age In Days column becomes blank. The archiving process uses the Default Policy Age In Days value to run archiving. - To specify a custom value, specify the number of days in Custom Specified Age in Days.
- To enable a policy, select it in the Archive Policies table, and click Enable Policy.
To disable a policy, select it in the Archive Policies table, and click Disable Policy.
The value of the Custom Specified Age in Days field changes to -1 indicating that the policy is disabled. When you re-enable the policy, the system clears the negative integer from the associated table cell, but leaves it empty. The system does not restore the previous custom Age in Days value. If you still need the archiving policy to reference the custom Age in Days value, you must re-enter the value.
To run an on-demand archive process
If you need to run an archive process outside of the archiving schedule, you can run an on-demand archive process. The on-demand archive processes let you move the data to the archive database by record type. That is, you can run the on-demand archive processes against incident requests, change requests, and so on.
- From the Archive Policies table, select the record type for which you want to run the on-demand archiving process.
- Click Run Selected Policy Now.
Tip: If the Run Selected Policy Now button is not visible in the UI, the policy you selected is disabled. To enable it so that you can run an on-demand archive process, make sure the policy is selected in the table, and then click Enable Policy.
To prevent a record from being archived
When you archive a ticket, the ticket is removed from the production environment and sent to offline storage where it is unavailable for viewing to most end users. However, you can exclude records from the archiving process (for example, sample transactional data) by selecting the Do Not Archive check box. Anyone with update permissions for the ticket can select this option.
The Do Not Archive check box is available only on records with one of the following statuses:
- Closed (BMC Helix ITSM: Change Management, BMC Helix ITSM: Service Desk)
- Retired, Cancelled, or Closed Version (Knowledge Management)
- Cancelled or Closed (BMC Service Request Management)
- Open the record that you want to exclude from the archive.
- Open the tab that contains the check box, according to the following list:
- Date/System tab (BMC Helix ITSM: Change Management, BMC Helix ITSM: Service Desk, , or Work Order)
- Dates and Costs tab ( or Service Request)
- Under the System Information group, select Do Not Archive.
- Click Save.
If later you decide that the record can be archived, clear the Do Not Archive check box, and the record will be included in the next run of the archive process.
Stopping an archive run after it has started
If you need to stop the archive run after it has started, there are a few ways to do that, depending on the type of archiving run you need to stop:
- Scheduled, full archive run—To stop an entire, scheduled archive run in mid-process, from the AR System Archive Manager console, turn archiving off.
- Individual archiving policy—To stop an individual archiving policy in mid-process when it is part of a scheduled archiving run, disable the policy in the AR System Archive Manager console. When you disable an individual policy that is part of a regular archiving run, the archiving run skips the remainder of the qualified records covered by the disabled policy and moves on to the next archive policy.
- On-demand archive—To stop an on-demand archive, disable the applicable policy in the AR System Archive Manager console.
When you turn off archiving or disable an archiving policy as mentioned here, the archiving process finishes archiving the record currently being processed and then stops or moves on to the next archiving policy. All of the records that the archiving run processed before you disabled it remains committed to the Archive form. For more information, see Managing the Archiving process policies.
Server events and logging
To create an entry for archiving in the Server Events form,
- Go to AR System Administration > AR System Administration Console > General > Server Information.
- On the Server Events tab, select the Archive option.
If you select the Archive check box, every archive event is logged into the Server Events form.
The following fields are populated with the archive event data on the Server Events form:
- Event Type—(14) AR_SVR_EVENT_ARCHIVE_DONE.
- Event Cause—One of the following entries:
- (1) AR_SVR_EVENT_ARCHIVE_FORM (Copy to archive only).
- (2) AR_SVR_EVENT_ARCHIVE_DELETE (Delete from source only).
- (3) AR_SVR_EVENT_ARCHIVE_FORM_DELETE (Copy to archive and delete from source).
- Event Date—Date and time of the end of the archive operation.
- Event Details 1—Source form name.
- Event Details 2—One of the following entries:
- Copy to archive and Copy to archive and delete from the source.
numberOfRecordsTransferred—totalNumberOfEntriesAttempted - Delete from source
numberOfRecordsDeleted—totalNumberOfEntriesAttempted
- Copy to archive and Copy to archive and delete from the source.
- Event Details 3—Destination form name.
FAQ
The following FAQs provide you with information about the archiving process: