Professional Documents
Culture Documents
Backup and Restore Guidelines
Backup and Restore Guidelines
-1-
Applies To:
SAP NetWeaver 04 and previous versions.
Summary
This document describes the general ideas of Backup & Restore concepts for a distributed system environment. It provides the information needed to set up a Backup & Restore strategy for an implementation of the EP 6.0, KMC and Web Application on SAP Web AS 6.40 Java. By: Oleg Figlin Company: SAP UK Date: 18 October 2005
Table of Contents
Applies To: ................................................................................................................................. 2 Summary.................................................................................................................................... 2 Table of Contents ....................................................................................................................... 2 Overview .................................................................................................................................... 3 Scope of document ................................................................................................................. 3 Backup & Restore Overview ....................................................................................................... 1 Supported Backup Methods........................................................................................................ 2 Online Backup......................................................................................................................... 2 Offline Backup......................................................................................................................... 2 System components to be backed up.......................................................................................... 3 Which directories should be backed up?.................................................................................. 4 Restoring.................................................................................................................................... 7 Appendix .................................................................................................................................... 9 Author Bio ................................................................................................................................ 10
-2-
Overview
Backup and restore strategies relate to specific backup and restore solutions offered by specific vendors, therefore detailed information on various backup strategies is not discussed in this document. Scope of document The following topics are in scope in this document: Backup & Restore strategy for Web Applications (on top of SAPJ2EE ) Backup & Restore strategy for an implementation of the Enterprise Portal 6.0 Backup & Restore strategy for an implementation of KMC
The following topics are out of scope in this document: Backup applications running on the ABAP-Stack of SAP NetWeaver 04 Backup of Java based components like XI, BI or other applications running of WebAS 6.40 Java Backup of TREX: Backup of systems, integrated into the Enterprise Portal Backup of customer specific components
- You will see this image in many places below. This sign meaning the recommendations section.
-3-
Carefully develop your backup and restore strategy for portal infrastructure and web applications in order to achieve a consistent state upon recovery. The strategy may involve backup at the component level, or a full backup of the entire system. Portal components and their configuration are independent, and need to be backed up together. All operations of the portal that use some type of storage for saving business information must be considered for backup. When deciding on which backup method (online / offline) should be used you have to take into consideration the type of the storage (File System / Database) that you are using. In most cases, backing up just the database shared by the portal and SAP Web Application Server is sufficient.
2005 SAP AG
Online Backup
All components, which need to be backed up, are up and running. No downtime is required! Online backup takes place during system operations (while various components and services are running). Files that are opened are not backed up during online backup of databases and file systems. You may choose to employ additional software to complement the online backup. Starting with SAP NetWeaver 2004 SP Stack 10, online backup is officially supported for all SAP NetWeaver components without restrictions (Some restriction presented in WEB AS 6.20 and EP 6.0 on 6.20). For general backup procedures of the central SAP Web Application Server database, see the SAP NetWeaver Technical Operations Manual (TOM). Online backup of the Web AS 6.40 database and file system is possible. The database is the primary persistence for data storage. Parts of the file system are synchronized with the DB upon any Java system restart.
Offline Backup
All components, which need to be backup, are shut down. Downtime necessary availability of components is reduced! Offline backup is performed after system operations have been stopped, and a snapshot of the system's state at a point in time is mirrored onto a media. The advantage of offline backup is your ability to preserve the consistent state of the backed up system, and then to restore the system to the same state.
Online and offline backups each have advantages and disadvantages. Therefore a good backup strategy must include both online and offline backup to enable 24 x 7 support for restore or recovery if needed. When performing Online backup, if you keep data outside the WebAS database, you must back up this data separately. This is for instance the case for repositories connected to KM, for TREX indices, for LDAP data, etc. For more information about component-specific backup procedures, see the Portal, Business Information Warehouse, Exchange Infrastructure, Knowledge Management, TREX, and Mobile Infrastructure sections of the TOM. Online and offline backup is supported for both: DB and FS! A backup concept of SAP NetWeaver 04 Java must include the following tasks:
2005 SAP AG
As the portal interrelates with other components, these must be backed up too. They can include: Web servers User Persistence Store Java applications and their configuration files Native applications and their configuration files Relational Database Management System (RDBMS) and their data
2005 SAP AG
Add-In installation
System Component Web AS 6.40 Java Cluster File system and Database (Startup Framework, SCS instance, Central Instance and any Dialog Instance) Software Deployment File system Manager (SDM) Internet Graphics Server (IGS) SAPCCMSR Agent SAPOSCol Agent RDBMS Instance Enterprise Portal 6.0 (as application deployed on Web AS 6.40 Java cluster)
Type of data Configuration Data & Software Application Data Configuration Data Configuration Data Configuration Data & Software Configuration Data Software Application Data
File system File system File system and Database File system and Database Database and File system
Content Management & Collaboration (as application deployed on Web AS 6.40 Java cluster) User Management Persistence
Database and File system Depending on configuration: external systems (file system, database) Database Depending on configuration: external systems (LDAP servers, database)
Which directories should be backed up? 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 4
WEB AS 6.40 Add In Installation - J2EE Instance on File System - File structure Backup
WEB AS 6.40 Java Only J2EE Instance on File System - File structure Backup
Data of the EP 6.0 and KMC is partially stored on the file system: Configuration and Software Data in /usr/sap/<sid>/SYS/global/* Configuration files like PCD and CM property files Libraries, jar-files Application Data in /usr/sap/<sid>/SYS/global/* 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 5
The Bootstrap JAVA program synchronizes the binary data from the Java database with the local file system and creates a property file, which describes the processes of the Java instance. Data consistency between DB and FS is guaranteed by the bootstrapping! The SDM (Software Deployment Manager) writes information about deployments into the file system.In your backup routine, include a backup of SDM directories, stored on FS _ /usr/sap/<sid>/<instance_00>/SDM This data changes upon any software deployment done via SDM and SAPInst. During any software deployment via SDM and SAPInst, files can be opened. Thus, it is recommended to backup /usr/sap/<sid>/<instance_00>/SDM, while no deployments are proceeded (e.g. when SDM is stopped). Configuration/ Software Data of EP 6.0 and KMC are stored on FS. Online Backup is possible as files are only read by the applications! Creating transport packages and defining XML forms builder projects will perform write operations to FS. During online backup, loss of data might therefore be possible! But: This is administrator activity only! Transport packages are reproducible! Include a regular DB backup into your backup routine! Include a regular FS backup into your backup routine, e.g. after applying hotfixes, patches or service packs! UNIX: /usr/sap/<sid>/* UNIX: /sapmnt/<sid>/* Windows: \usr\sap\<sid>\*
To guarantee consistency of an online backup of the file system, stop SDM to prevent any write activity during the backup. 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 6
Restoring
A successful backup is good to have; however, a successful restore is the key. Restoring a system from an online backup can present problems; therefore, restoring a system based on an online backup must be followed by verification tests. Restore Procedure of WebAS 6.40 Java and deployed applications: 1. Restore Java Instances a. Delete the following directories of the file system backup: /usr/sap/<sid>/<Java_instance_##>/j2ee/cluster/dispatcher/ /usr/sap/<sid>/<Java_instance_##>/j2ee/cluster/server0/ b. Restore the following paths of the file system on UNIX: /sapmnt/<sid>/* /usr/sap/<sid>/* 2. Restore DB 3. Restore SDM 4. Restore Deployed Applications 2005 SAP AG The SAP Developer Network: http://sdn.sap.com 7
2005 SAP AG
SAP Note 711093: Release Restriction Note for Web AS 6.40 o o HA-Setups for SAP NetWeaver 04 are currently released on project base only Official SAP Consultations are necessary ( -> 803018)
SAP Note 709354: Release Restrictions for SAP EP 6.0 on Web AS 6.40 o DB switch-over solutions on project base only ( -> 803018)
SAP Note 803018: Central note for NetWeaver04 High Availability capabilities o HA-Setups for SAP NetWeaver 04 are currently released on project base only ( -> 711093 and 709354)
SAP Note 785848: Hom./Het. System Copy SAP Web AS 6.40 SR1 Java For additional information on how to perform online backup of TREX, see SAP Note number 666279. For information on how to perform an offline backup of TREX, see SAP Note number 639053. Consistency Check Tool UME consistency check tool Component com.sap.security.ume.securitycheck.default Available for EP 6.0 SPS10 SAP Note 818947 for details
2005 SAP AG
2005 SAP AG
10