HP Web Jetadmin Software - Backup and Cloning of an HP Web Jetadmin Installation

6
information, see item 3 in Limitations of cloning. If there are templates that contain
passwords, see items 2 and 5 in Limitations of cloning.
The following settings and data are required to restore HP Web Jetadmin:
A file-set from a previously performed backup using the backup.bat script
HP Web Jetadmin running on a supported host and in the same state as was recorded in the
backup procedure
Administrative access to this host
Run the restore script
Ensure that the backup file-set that was created by running the backup.bat script is located in the
DRIVE:\Program Files\Hewlett-Packard\Web Jetadmin 10\WJABackupRestore directory. There must
be a Settings directory of files and an HPWJA_DB_BACKUP.dat file, which is the database backup.
When the restore.bat script executes, all of the settings that were specified during the HP Web
Jetadmin installation are overwritten with the values from the backup. This means that after a restore,
the setting for the Data Collection feature reflects the value from the backup. The Data Collection
feature is available by going to Tools > Options > Shared > General > Data Collection. The Data
Collection feature was introduced in HP Web Jetadmin 10.3 SR6.
To run the restore script, open a command window, change to the directory where the batch file is
located, and type restore.
The following steps occur during the restore:
1. Variables that define the directories where the files and SQL Server Express are located are set.
2. The script checks for the existence of files and directories. If directories or files from a previous
backup already exist, errors are posted and the script terminates. If this occurs, move the previous
database backup files and Settings directory to a separate location outside of the
DRIVE:\Program Files\Hewlett-Packard\Web Jetadmin 10\WJABackupRestore directory.
3. A disclaimer and acceptance prompt is provided to prevent the existing data from being
overwritten accidentally.
4. The following commands stop the HP Web Jetadmin service:
%SERVICE% -stop
%SERVICE% -wait-on-stop
5. The following command restores the database:
%OSQL% -S localhost\HPWJA -E -i osql_restore.sql > osql_restore.log
See the osql_restore.log for the results.
6. The following command restores the file structure for the Settings directory:
xcopy /e/v/i/q/h/k/o/x %SETTINGS_BACKUP_DIR% %SETTINGS_DIR%
A message appears in the command window that specifies the number of files that were copied
and states that an osql_restore.log file is available for viewing. There should be no errors present.
7. The following commands start the HP Web Jetadmin service:
%SERVICE% -start
%SERVICE% -wait
HP Web Jetadmin can now be launched to determine if all of the printers are present and all of the
settings are restored.