Table of Contents Previous Next


7 Recovering From a Console Failure : 7.1 Enabling Console Backups with the EDB Ark Backup Script

For the console backup script to function properly, the console (GlassFish) must be running as the ppcd user, and the ppcd user must have sufficient privileges to read and execute the backup script. The .pgpass file (used for backup authentication) is located in the ppcd user’s home directory (/var/ppcd).
Use the parameters in the PPCD Console DB Backup properties section of the ppcd.properties file to specify backup instructions for the Ark console. By default, the backup properties are commented out; when you uncomment the parameters, the backup service will start when the console application is deployed.
# console.db.password= 0f42d1934a1a19f3d25d6288f2a3272c6143fc5d
By default, the console.db.backup.script parameter specifies the name and location of the backup script provided with EDB Ark. If you choose to provide your own backup script, use the parameter to specify the name and location. Please note that you must ensure that the script can be read and executed by the ppcd user.
Use the console.db.backup.dir parameter to specify a directory to which backups will be written. Please note that you must create the directory specified. The ppcd user must have sufficient privileges to write to the specified directory.
On an Amazon hosted console, you can use the console.db.backup.container and console.db.backup.folder parameters to specify the name of a container (an Amazon S3 bucket) in which console backups will be stored, and a console-specific folder name. If no value is specified for console.db.backup.folder, the value will default to default.

# Unique name for the console backup folder that identifies this
The backup script provided with the Ark console uses pg_dump to create a plain-text SQL script file that contains the commands required to rebuild the console database to the state in which the backup was taken. You can use the following command to invoke the psql command line tool and use the script to restore the console:
Where recovery_file specifies the path and name of the backup file you wish to restore.
If the console is configured to support console backups, the Ark console will display the Register or Recover dialog (as shown in Figure 7.1) if the console cannot locate a registered user.
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\306a03e0\Screen Shot 2017-01-12 at 10.34.25 AM.png
Select Recover to instruct the Ark console to use the backup of your old console when starting. The recovered console will contain the previous list of registered users, monitoring data, and events from the last time that the database was backed up.
C:\Users\susan\Desktop\recover.png
The Folder name drop-down listbox (see Figure 7.2) will contain a list of backup sources available for use during the recovery. Select a backup source, and click Finish to instruct Ark to reload the backup, or Cancel to exit without recovering the console.

7 Recovering From a Console Failure : 7.1 Enabling Console Backups with the EDB Ark Backup Script

Table of Contents Previous Next