HP 3PAR StoreServ 7400 4-node HP 3PAR Policy Server Administrator's G - Page 53

Getting Version Information, Backing Up and Restoring the Database, Backing Up the Database

Page 53 highlights

Getting Version Information After installation, you can see the version number in the About Policy Server popup window of the Policy Server application (available from the menu). You can also display it through a command line utility. Open a Command Prompt (Windows) or shell (Linux) and navigate to the following directory of the Policy Server installation: /HP3PAR/HP3PARpolicyserver/bin or c:\\bin). Run the command for your operating system: • Linux serverVersion.sh • Windows serverVersion.cmd Note: The version scripts are available on the machine where you installed Policy Server. If you installed the database and/or the OpenDS directory server on separate machines, the scripts are not available on those machines. Backing Up and Restoring the Database HP 3PAR Policy Server and the HSQL database can run on different machines. The backup and restore scripts provided with Policy Server perform all backup and restore operations you need for the HSQL database. Administrators can perform interactive backups as well as scheduled backups using Windows scheduled tasks or UNIX cron. Important! The backup/restore options available in previous releases are NO LONGER SUPPORTED. Backing Up the Database To make it easy to back up your database, use the backup_database utility, which is located in the directory, /hsqldb/bin. This utility creates a backup of the HSQL database in the backup repository /hsqldb/backups/.tar.gz. The number of backups in the repository is limited to 30 by default. The number of backups to retain can be overridden by specifying the desired number (an Integer) on the command line. For example, to retain 10 backups, enter the command as follows: backup_database 10 Here is an example of the output of this utility: $ /opt/Axeda/HP3PS/hsqldb/bin/backup_database 10 Pruning backups to preserve retained backup count of 10: apm-20110921T174859.tar.gz Backing up to '/opt/Axeda/HP3PS/hsqldb/backups' Backup completed HP 3PAR Policy Server 6-3

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87

HP 3PAR Policy Server
6-3
Getting Version Information
After installation, you can see the version number in the About Policy Server popup window of the Policy
Server application (available from the
menu). You can also display it through a command line utility.
Open a Command Prompt (Windows) or shell (Linux) and navigate to the following directory of the Policy
Server installation:
/HP3PAR/HP3PARpolicyserver/bin
or
c:\<<PolicyServer_Installation>>\bin)
. Run the
command for your operating system:
Linux
serverVersion.sh
Windows
serverVersion.cmd
Note: The version scripts are available on the machine where you installed Policy Server. If you
installed the database and/or the OpenDS directory server on separate machines, the scripts are not
available on those machines.
Backing Up and Restoring the Database
HP 3PAR Policy Server and the HSQL database can run on different machines. The backup and restore
scripts provided with Policy Server perform all backup and restore operations you need for the HSQL
database. Administrators can perform interactive backups as well as scheduled backups using Windows
scheduled tasks or UNIX cron.
Important!
The backup/restore options available in previous releases are NO LONGER
SUPPORTED.
Backing Up the Database
To make it easy to back up your database, use the
backup_database
utility, which is located in the directory,
<your_HP3PS_install_dir>/hsqldb/bin
. This utility creates a backup of the HSQL database in the backup
repository
<your_HP3PS_install_dir>/hsqldb/backups/<timestamp>.tar.gz
.
The number of backups in the repository is limited to 30 by default. The number of backups to retain can be
overridden by specifying the desired number (an Integer) on the command line. For example, to retain 10
backups, enter the command as follows:
backup_database 10
Here is an example of the output of this utility:
$ /opt/Axeda/HP3PS/hsqldb/bin/backup_database 10
Pruning backups to preserve retained backup count of 10:
apm-20110921T174859.tar.gz
Backing up to '/opt/Axeda/HP3PS/hsqldb/backups'
Backup completed