• No results found

Backup/Export Target Resource Definition

Define Interstage backup target resources in the batch file.

Use the following syntaxes to define the target resources:

The backup target definition file can be created with an arbitrary name according to the following syntaxes:

For details, refer to Backup Procedure and Resource Exporting Procedure.

The sample of the backup target resource definition file is provided below.

Define Interstage backup target resources in the batch file.

/opt/FJSVisas/sample/backup_restore/sample.def

Define Interstage backup target resources in Shell.

Description Format

Write one definition on a single line in the batch file rem [Section name]

set definition name = Definition value

Write one definition on a single line in the definition file.

[Section name]

definition name = Definition value

Write one definition on a single line in the shell.

# [Section name]

set definition name = Definition value Note

• Write "[", "]", and "=" in en-size characters.

• When writing a comment, write # after the definition value. Do not specify # at the top of a line.

Definition Item List

Backup target items are listed below.

• Section names or definition names cannot be omitted.

• Definition values are indicated as below.

o: required -: can be omitted x: cannot be specified

according to the installation

Specifies a directory that stores the backup/export

An operation target when specifying

An operation target when specifying

An operation target when specifying

An operation target when specifying

"on." Not an operation target

Section

An operation target when specifying

An operation target when specifying

An operation target when specifying

An operation target when specifying

An operation target when specifying

"on." Not an operation target when specifying

JS2 Specifies old

version

An operation target when specifying

"on." Not an operation target when specifying

Section 2. Web application 3. Environment definition information and Web application

JS2_CMD_1 jar or command used for backup. directory that stores the operation target application.

Required specifying in pairs. (*6

Section

An operation target when specifying

"on." Not an operation target when specifying

EJB Specifies EJB

service-related items.

EJB_EJBAPP Directory o

Specifies the folder that stores EJB application.

INFODIR_TA RGET

on or off o

An operation target when specifying

directories can be specified. (*8) SOAP_TARG

ET

on or off o

An operation target when specifying

"on." Not an operation target when specifying

SOAP Specify SOAP

target files such as Web service information control file and security environment setup.

Multiple

directories can be specified. (*2)

An operation target when specifying

An operation target when specifying

"on." Not an operation target when specifying

Section

An operation target when specifying and password file.

IHS Specifies

Specifies the backup target password file.

JS2SU Specifies

An operation target when specifying

on or off An operation target when specifying

"on." Not an operation target when specifying

"off."

Section

host Hpst name

x

Specifies only in restore or import.

path Directory o

Specifies a directory that stores the backup/export

target_server x Specifies only in restore or import.

target on or off o

An operation target when specifying

Specifies only in restore or import.

GUI Specifies

An operation target when specifying

An operation target when specifying

section target is

"on."

port Port number

x

Specifies only in restore or import.

OD Specifies

Specifies only in restore or import.

ES Specifies event service-related items.

target on or off o

An operation target when specifying

"on." Not an operation target when specifying

"off."

Section

An operation target when specifying

An operation target when specifying

section target is

"on."

An operation target when specifying

An operation target when specifying

An operation target when specifying

"on." Not an operation target when specifying

Section

An operation target when specifying 2. Web application 3. Environment definition information and Web application

cmd jar or tar command used for backup.

JS2 Specifies old

version directory that stores the operation target application.

Required specifying in pairs. (*6

EJB Specifies EJB

service-related items.

target on or off o

An operation target when specifying

"on." Not an operation target when specifying

Section

Specifies the folder that stores EJB application.

The default directory is the operation target when omitted.

(*7) target on or off

o

An operation target when specifying

directories can be specified. (*8) target on or off

o

An operation target when specifying

"on." Not an operation target when specifying

SOAP Specify SOAP

service-related items.

source File path

-

Specifies backup target files such as Web service information control file and security environment setup.

Multiple

directories can be specified. (*2)

An operation target when specifying

An operation target when specifying

"on." Not an operation target when specifying

(*5)

Section

An operation target when specifying and password file.

passwd_sourc

Specifies the backup target password file.

IHS Specifies

Specifies only in restore or import.

JS2SU Specifies

An operation target when specifying

on or off An operation target when specifying

"on." Not an operation target when specifying

"off."

*1 : Multiple backup target directories can be specified to [JS2] section.

To specify multiple directories, change :DEFINITION_PART and :PROCEDURE_PART of the batch file.

In this batch file, two files are defined as samples, and the second file has a comment. Therefore, remove the comment in using the file. For the third file (and after), copy and change the corresponding parts and then execute the batch process.

Example

rem EXAMPLE - more files can be specified here rem=======================================

rem set JS2_CMD_2=xcopy

rem set SOURCE_DIR_2=%INST_DIR%\F3FMjs2\webapps\debug rem======================================

rem IF "%JS2_OPTION%" == "2" (

rem FOR %%I IN ("%SOURCE_DIR_2%") DO (

source_dir = /opt/FJSVjs2/webapps/sample1 cmd = tar

source_dir = /opt/FJSVjs2/webapps/sample2

*2 : For [SOAP] section, SOAP_SOURCE can be specified for Windows(R) or Linux, and multiple files or directories can be specified in source for Solaris OE. When specifying multiple files or directories, space-delimiter is required.

If a file name contains a space, it must be enclosed in " " (double-quotation marks).

Example

:DEFINITION_PART ...

rem [SOAP]

set SOAP_TARGET=on

set SOAP_SOURCE=%INST_DIR%\F3FMsoap\etc\DeployService\server

config.wsdd %INST_DIR%\F3FMsoap\etc\DeployService\server-config2.wsdd

[SOAP]

target = on

source = /opt/FJSVsoap/deplay /opt/FJSVsoap/deplay/file.db

*4 : For [JMS] section, the following path to CLASSPATH must be specified for backup.

CLASSPATH=/opt/FJSVj2ee/lib/isj2ee.jar:/opt/FJSVjms/lib/fjmsprovider.jar

*5 : For [J2EE] section, the directory that stores jar command must be included in the environment variable PATH because jar command is used in the internal process.

*6 : For [IPP] section, multiple backup target files can be specified.

To specify multiple files, change :DEFINITION_PART and :PRPCEDURE_PART of the batch file. In this batch file, two files are defined as samples, and the second file has a comment. Therefore, remove the comment in using the file. For the third file and after, copy and change the corresponding parts and then, execute the batch process.

The backup file is created in the following directory under the directory that stores resources:

Example

Folder storing resources\IPP\environment definition file name\

:DEFINITION_PART ...

rem [IPP]

set IPP_TARGET=on set IPP_OPTION_1=1

set IPP_SOURCE_1=F3FMwww.dat

rem======================================

rem EXAMPLE - more files can be specified here rem======================================

rem set IPP_OPTION_2=2

rem set IPP_SOURCE_2=F3FMwww2.dat

rem=====================================

rem MD %COMMON_PATH%\IPP\%IPP_SOURCE_2%

rem IF ERRORLEVEL 1 (

Directory storing resources/IPP/environment definition file name/

[IPP]

target = on option = 1

source = /opt/FSUNprovd/conf/HTTPD.conf option = 2

source = /opt/FSUNprovd/conf/HTTPD2.conf ...

*7 : For [EJB] section, the following directories are the operation targets when ejbapp is not defined:

Default system

/opt/FJSVj2ee/var/deployment/deployed/ejbapp Extended system

/var/opt/FJSVisas/system/extended system name/FJSVj2ee/var/deployment/deployed/ejbapp

*8 : For [InfoDir] section, multiple DSA directories can be specified. To specify multiple directories, space-delimiter is required. If the directory contains a space, the command parameter must be enclosed

Example

:DEFINITION_PART ...

rem [InfoDir]

set INFODIR_TARGET=on

set INFODIR_SOURCE=%INST_DIR%\dib\DSA1 %INST_DIR%\dib\DSA2

[InfoDir]

target = on

source = /opt/dib/dsa1 /opt/dib/dsa [Supplement]

Backup only the sections with definition value of "on."

Related documents