Generating Backup and Restore Scripts 
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.
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
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
#
Restoring the System
Syntax
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
#
Listing the Backup Copies
Syntax
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
#
Deleting Backup Copies
Syntax
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
#