How to Back Up SAS IT Resource Management

Introduction to the Backup Process

The backup process takes a snapshot of the current state of the SAS IT Resource Management system. It is essential for record-keeping purposes to take backups before you make major changes to the tables and transformations in your system. Another good practice is to run the backup process nightly either before or after the system is being updated with new data.
Backing up your SAS IT Resource Management system consists of backing up four separate areas of content:
  • Metadata
  • Data
  • Reports
  • Other report-related content
Tip
For best results, establish a formal, regularly scheduled backup process. It is important to back up all the above items at (approximately) the same point in time so that related information is synchronized. This practice is crucial if a restore becomes necessary.
Make sure that a backup process is put into place immediately after SAS IT Resource Management is initially deployed, and that backups are taken before major changes are made to the system. This practice can help the data administrator recover your system in the event of an error.
For information about backing up your system, see SAS Intelligence Platform: System Administration Guide at http://support.sas.com/documentation/index.html. The following scenario describes the case when a recovery from backup is necessary along with details about backing up and recovering each of the four areas of content.

Scenario: Recovery of Metadata, Data, and Reports After a Job Fails

The following scenario, illustrates how regularly scheduled backups are used to recover from a change to the system that resulted in a corrupt SAS Metadata server. In the scenario, the corruption is not discovered until the results of the next day's processing of the daily job reveal issues that lead to the identification of the metadata server corruption.
  • Day 1
    • At 2:00 a.m., the daily job is started.
    • At 4:00 a.m. (or as soon as the daily job finishes), the backup job runs, creating generation N of the metadata, data, reports, and report-related content.
    • Later in day 1, the metadata server is corrupted. The problem is not discovered at this time.
  • Day 2
    • At 2:00 a.m., the daily job is started.
    • At 4:00 a.m. (or as soon as the daily job finishes), the backup job runs, creating generation N + 1 of the metadata, data, and reports.
    • Later in day 2, the error in the metadata server is discovered.
    • The system administrator can restore the metadata, data, and reports from the backup that was made on day 1 (generation N), and rerun the Day 2 daily job.

Backing Up Metadata

Metadata for SAS IT Resource Management is stored in the SAS Metadata Server. The following is a partial list of some operations that result in metadata being updated:
  • An IT data mart is created or modified.
  • The Adapter Setup wizard is executed.
  • Staged tables or aggregations tables are created or modified.
  • Jobs are created or modified.
  • Reports are published with the ITRM Report Definition task in SAS Enterprise Guide.
  • Information maps are created or modified.
The data administrator should back up the metadata either before or after these or similar activities.
Note: Metadata is not updated during the execution of the daily ETL or report jobs.
The SAS 9.4 Metadata Server includes a server-based facility that performs metadata server backups automatically on a scheduled basis. This facility can also be used to perform ad hoc backups and roll-forward recovery. (Roll forward recovery is the process of using a journal or log file of transactions that can be executed to recover a system.) For complete instructions for backing up the SAS Metadata Server, see Part 4, “Backing Up and Restoring Your SAS Content,” in the SAS Intelligence Platform: System Administration Guide. This documentation is located at http://support.sas.com/documentation/index.html.
Tip
If you stop the SAS Metadata Server to do a backup, any servers in your system that access the Metadata Server might be adversely affected.
Note: The server-based metadata backup facility replaces the %OMABAKUP macro, which was available in SAS 9.1 and 9.2. It also replaces the Backup and Restore Wizard in SAS Management Console, which was available in SAS 9.2.

Backing Up Data

SAS IT Resource Management stores data in files that reside in the customer’s physical file system. These files are pointed to by metadata objects in the IT data mart. Typically, all physical files for a single IT data mart reside underneath the root path of an IT data mart. To copy all of the files and subdirectories beneath this root path to a backup location, you can use these procedures, command, and tools:
  • Base SAS DATASETS or COPY procedures
  • operating systems commands
  • third-party tools
Note: This backup procedure should be done for all IT data marts.
For best results, you should back up the entire contents of the IT data mart, instead of selecting specific files or directories. In other words, make sure that your backup procedure includes the aggregation tables, staged tables, and the Admin and spin libraries.

Backing Up Reports

SAS IT Resource Management uses SAS Content Server, a WebDAV server, to store report output. Report output is created by the report jobs and is displayed in ITRM Report Center. In addition, other SAS products that are included with SAS IT Resource Management, such as SAS Web Report Studio and SAS Information Delivery Portal, use SAS Content Server for storage of their reports and supporting files.
To back up SAS Content Server, perform the following steps:
  1. Stop either the web application server or the SAS Content Server application.
    • Stop the SAS Web Application Server.
    Note: If you stop the SAS Content Server to do a backup, any servers in your system that access the SAS Content Server might be adversely affected.
  2. Use operating systems commands or third-party tools to copy all the files and subdirectories from the middle-tier platform to a backup location.
    • If your middle-tier platform is on Windows, back up the files and subdirectories that are in this location: <SAS-configuration-directory>\Lev1\AppData\SASContentServer\Repository.
    • If your middle-tier platform is on UNIX, back up the files and subdirectories that are in this location: <SAS-configuration-directory>/Lev1/AppData/SASContentServer/Repository.
  3. Start your web application server or SAS Content Server application.

Backing Up Other Reporting-Related Content

Updates can be made to copies of SAS Enterprise Guide projects that are used for reporting in SAS IT Resource Management. If that situation occurs, then those user-owned copied projects should be backed up by using operating system commands or third-party tools. If you installed the supplied SAS Enterprise Guide projects, they can be accessed by navigating to the location where you installed SAS IT Resource Management. The projects are located at SASITResourceManagementSASEnterpriseGuideComponents\3.7. For example, the projects might be located at C:\Program Files\SASHome\SASITResourceManagementSASEnterpriseGuideComponents\3.7.
Note: Making changes to supplied SAS Enterprise Guide projects is strongly discouraged. If you must change a project, copy the project and make your changes to that copied version of the project. For more information, see Appendix 4, “Best Practices” in the SAS IT Resource Management 3.7: Reporting Guide.
ITRM Report Center users can create galleries and gallery folders. You might want to back up those items so that they do not have to be manually re-created in the unlikely event of a system failure. If so, you should use operating systems commands or third-party tools to copy all of the files on the middle-tier platform:
  • If your middle-tier platform is on Windows, back up the files that are in this location: <SAS-configuration-directory>\Lev1\AppData\ITRMReportCenter.
  • If your middle-tier platform is on UNIX, back up the files that are in this location: <SAS-configuration-directory>/Lev1/AppData/ITRMReportCenter.