Show TOC

Background documentationGenerating Backup and Restore Scripts Locate this document in the navigation structure

 

To enable SAP NetWeaver Enterprise Search's own data backup and restore functions using the appliancecontrol tool, you require a series of Shell scripts.

If your hardware partner has not prepared these for you, prepare the scripts as described below.

For more information about performing backup and restore, see SAP NetWeaver Enterprise Search Backup and Restore.

Procedure

Generate the following Shell scripts on the master blade and place the scripts in the Shell search path, for example /usr/local/bin:

Creating a Backup Copy

Syntax Syntax

  1. createbackup.sh <backup_tag> <path>
       return code:  0  ok
                    !0  not ok
       output: none if rc = 0
       example:
          # ./createbackup.sh backup_test_20080329_1 /usr/sap/FLY/TRX42/index
          # echo $?
          0
          #
    
End of the code.

Restoring the System

Syntax Syntax

  1. restorebackup.sh <backup_tag> <path>
       return code:  0  ok
                    !0  not ok
       output: none if rc = 0
       example:
          # ./restorebackup.sh backup_test_20080329_1 /usr/sap/FLY/TRX42/index
          # echo $?
          0
          #
    
End of the code.

Listing the Backup Copies

Syntax Syntax

  1. listbackups.sh
       return code:  0  ok
                    !0  not ok
       output: list of backup tags, one per line, if rc = 0
       example:
          # ./listbackups.sh
          backup_test_20080328_1
          backup_test_20080328_2
          backup_test_20080329_1
          # echo $?
          0
          #
    
End of the code.

Deleting Backup Copies

Syntax Syntax

  1. removebackup.sh <backup_tag>
       return code:  0  ok
                    !0  not ok
       output: none if rc = 0
       example:
          # ./listbackups.sh
          backup_test_20080328_1
          backup_test_20080328_2
          backup_test_20080329_1
          # ./removebackup.sh backup_test_20080328_3
          # echo $?
          0
          # ./listbackups.sh
          backup_test_20080328_1
          backup_test_20080328_2
          backup_test_20080329_1
          #
          # ./removebackup.sh backup_test_20080328_2
          # echo $?
          0
          # ./listbackups.sh
          backup_test_20080328_1
          backup_test_20080329_1
          #
    
End of the code.