Hitachi

JP1 Version 12 JP1/Automatic Operation Command and API Reference 


1.7.1 backupsystem (backing up the JP1/AO system)

Description

This command backs up the configuration and database information of JP1/AO to store the data in the specified folder.

Syntax

backupsystem
     /dir backup-data-path
     [/auto]

Arguments

/dir backup-data-path

This option specifies the absolute or relative path to an empty folder in which backup data is collected and stored. A folder in the local disk drive can only be specified. We recommend that you use a path that has 50 or fewer characters.

/auto

This option causes the command to automatically start and stop the services and databases of JP1/AO, JP1/OA, and the Hitachi Command Suite products. If this option is omitted, the services and databases of JP1/AO, JP1/OA, and the Hitachi Command Suite products are not automatically started and stopped.

If you want to use this option in a cluster environment, services registered with the cluster software must be offline.

Located in

In Windows:

JP1/AO-installation-folder\bin

In Linux:

/opt/jp1ao/bin

Execute permission

Execute the command as a user with Administrator or root permissions. If a user without Administrator or root permissions executes the command, a message appears asking the user to elevate the permission level.

Remarks

Return code

The following table lists the return codes from the command.

Return code

Description

0

The command succeeded.

1

The argument is invalid.

2

The command execution has been interrupted.

3

The service status is invalid.

4

One of the other commands is running.

7

An invalid path is specified.

9

The specified path does not exist.

10

The specified path is not accessible.

11

The specified folder is not empty.

14

You do not have permission to execute the command.

100

Performing the backup failed.

101

Starting or stopping the service failed.

103

An access to the scheduler database failed.

255

The command execution has been interrupted due to an error other than the above.

Example

The following example shows how to use the command to back up, in Windows, data in the specified backup folder (C:\Users\Backup):