Backing Up and Restoring AS Java

Use

Backing up the AS Java and the relevant database prevents you from data loss and is essential for the recovery of the server after the system breaks down.

You can use the backup data to restore your system in various scenarios. For example, you can:

  • Restore the initial state of the system if an installation or upgrade fails

  • Restore the SAP NetWeaver AS installation in case of operating system or file system problems

  • Restore the SAP system data if the database crashes, and so on.

You can apply two backup strategies:

  • Offline backup - this strategy enables you to create a full and reliable backup of your system, so that the system can be restored in case of a hard disk crash or operating system problems. This strategy requires system downtime, and therefore is not very suitable to be performed on a daily basis.

  • Online backup - using this strategy, you can backup the database and the file system, which enables you to recover only particular components of your system. It does not require full system shutdown, and therefore is convenient for creating regular incremental data backup. Online backup does not guarantee a full and consistent backup of all system components.

Prerequisites

The backup tools for your database and the backup solution for your system are installed and available.

Tasks

The most important administration tasks related to backing up and restoring that you need to perform in the AS Java are listed below:

Offline Backup

After installation or before and after upgrade of AS Java, you need to perform a full offline backup of your system. For more information, see the relevant installation guides on SAP Service Marketplace at Start of the navigation pathservice.sap.com/installNW70 Next navigation step InstallationEnd of the navigation path.

Online Backup

After you have created a full backup of your system, you should perform regular online backups of the following components:

  • Database

  • File system

    Create a backup of the SAP system directory /usr/sap/<SID>.

Restoring the System

  1. Shut down the system.

  2. Install a new AS Java system using SAPInst, or restore the file system from the offline backups that you created.

  3. Import the database backup using the relevant tools provided by the database vendor.

  4. Overwrite the SAP system directory /usr/sap/<SID>.

  5. Start the system (see Starting and Stopping SAP NetWeaver Application Server for ABAP and Java.)

    The J2EE Engine is restored with the last backup.

More Information

For more information, see the relevant system copy guides on SAP Service Marketplace at service.sap.com.