Hitachi

JP1 Version 12 JP1/Service Support Configuration and Administration Guide


jssdbbackup.bat (backs up databases)

Organization of this page

Description

This command backs up data in the database of JP1/Service Support. When JP1/Service Support uses the Item storage database, the Item management database and the Item storage database are both backed up.

To run this command, go to the Start menu and click Programs, JP1_Service Support, and JP1_SS Command Prompt. Then execute the command.

Format

jssdbbackup.bat {-f backup-file-name | -o folder-to-output-the-backup-file-to
                {-ALL | -mdb | -sdb} [-ow]}
                {-maint | -expand}

Required execution permission

Administrator permissions

Storage folder

JP1/SS-path\tools\

Arguments

-f backup-file-name

Use an absolute path to specify the name of the file to which you want to output a backup of data in the database of JP1/Service Support. The data in both the Item management database and the data in the Item storage database is backed up. Create the folder to output the backup file to before you execute the jssdbbackup.bat command.

Note the following when you create a backup file:

  • Always create the backup file on a local drive. You cannot create a backup file on a network drive.

  • You cannot use a UNC path to specify the backup file.

  • The path for the backup file must be an absolute path consisting of 259 bytes or less. The backup file name itself must be 255 bytes or less. Count two bytes for full-width characters in the file name.

  • The backup file name must not contain multi-byte characters. In addition, you cannot use character strings that are not recognized by the OS.

  • If the output destination folder contains another file with the same name as the specified backup file, the existing file will be overwritten. If you do not want to overwrite an existing file, specify a unique file name.

-o folder-to-output-the-backup-file-to

Use an absolute path to specify the name of the folder to which you want to output a backup of data in the database of JP1/Service Support. Create this folder before you execute the jssdbbackup.bat command. When you execute the jssdbbackup.bat command, a file that records the status when the backup is made (dbpath.txt) is stored in the folder to which the backup file is output. In dbpath.txt, the option information specified at backup, the size of the Item management database at backup, and information about the folder to expand the Item storage database to is output. The information about the folder to expand the Item storage database to is the same as the information output when the jssdbstatchk.bat (checks the status of the database) command with the -dbpath option is executed. The specified folder to output the backup files to has the following structure:

Name-of-the-folder-to-output-the-backup-file-to
 |- dbpath.txt   File that records the status of the database when the backup is made
 |- mdb_option#    Folder to output the backup file for the Item management database to
 |- sdb_option#    Folder to output the backup file for the Item storage database to
#

Either of maint or expand.

Note the following when you specify the name of the folder to output the backup file to:

  • Make sure that you specify a local drive for the drive to output the backup file to. You cannot specify a network drive.

  • You cannot specify a UNC path.

  • Use an absolute path of 80 bytes or less to specify the path to the folder to output the backup file to. If the character string specified for the folder name contains full-width characters, the full-width characters are converted to 2-byte characters.

-ALL

Backs up data in both the Item management database and Item storage database.

-mdb

Backs up data in the Item management database only. In addition to the folder to output a backup of the Item management database to, a folder to output backup of the Item storage database to is also created. However, files are not created.

-sdb

Backs up data in the Item storage database only. In addition to the folder to output a backup of the Item storage database to, a folder to output backup of the Item management database to is also created. However, files are not created.

-maint

Creates a backup file to be used to restore data in the database of JP1/Service Support.

-expand

Creates a backup file to be used to expand the database of JP1/Service Support, or move the data in the database of JP1/Service Support between servers.

-ow

Overwrites a backup file that already exists in the folder (specified with the -o option) to output a backup file to. When a backup file already exists in the folder to output a backup file to, if you execute the command without specifying this option, the command terminates with an error.

Return values

Return value

Meaning

0

Normal end

1

Abnormal end

Prerequisites for executing the command

Remarks

Example

The following example shows how to create a backup file (c:\backup\backup).

jssdbbackup.bat -f c:\backup\backup -maint