This procedure describes how to perform a full offline backup of an SAP system and how to use the backup data for a restore.
The SAP system and database are stopped. For more information, see Starting and Stopping SAP Systems Based on SAP NetWeaver.
<sapsid> adm
Database-specific operating system user(s)
/usr/sap/ <SAPSID>
/usr/sap/trans
/ <sapmnt>/ <SAPSID>
For more information about the SAP system directories available under these file systems, see SAP System Directories on UNIX.
The UNIX commands used in this procedure work on all hardware platforms. For more information about operating system-specific backup tools, see your operating system documentation.
Log on as user root.
Manually create a compressed tar archive that contains all installed files:
Saving to tape:
tar -cf - <file_system | compress -c> <tape_device>
Saving to the file system:
tar -cf - <file_system | compress -c> ARCHIVENAME.tar.Z
On Linux, you can also execute the following command to manually create a compressed GNU tar archive that contains all installed files and save it to the file system:
tar -czf <ARCHIVENAME>.tgz <file_system>
If required, you can restore the data that you previously backed up.
Check for modifications in the existing parameter files before you overwrite them when restoring the backup.
The UNIX commands used in this procedure work on all hardware platforms. For more information about operating system-specific backup tools, see your operating system documentation.
Execute the following command to restore the data from tape:
cat <tape_device>| compress -cd | tar -xf -
Execute the following command to restore the data from the file system:
cat ARCHIVENAME.tar.Z | compress -cd | tar -xf -
If you want to restore the data from a GNU tar archive on Linux, you have to execute the following command:
tar -xzf <ARCHIVENAME>.tgz