Configuring and Using VMware Postgres
Backing up with pgBackRest
pgBackrest, an open source backup and restore solution for PostgreSQL, is included with VMware Postgres. You can configure PostgreSQL and pgBackRest to set up backup and restore for your Postgres databases.
Procedure
Install pgBackRest Perl prerequisites.
$ sudo yum install perl perl-Time-HiRes perl-Digest-SHA perl-JSON-PP
Create pgBackRest configuration directories and files.
$ sudo mkdir -p /etc/pgbackrest $ sudo mkdir -p /etc/pgbackrest/conf.d $ sudo touch /etc/pgbackrest/pgbackrest.conf $ sudo chmod 640 /etc/pgbackrest/pgbackrest.conf $ sudo chown postgres:postgres /etc/pgbackrest/pgbackrest.conf
Check that pgBackRest is properly installed.
$ sudo -u postgres pgbackrest
You will see errors if any dependencies are missing.
See the pgBackRest User Guide for help configuring Postgres and pgBackRest, and for backing up and restoring your Postgres databases.
Configuring psqlODBC
You configure psqlODBC by placing settings into a configuration file, odbc.ini
, and then using an ODBC driver manager such as UnixODBC or iODBC to load the configuration file. See 7.3. Configuration Files in the PostgreSQL documentation for information about the ODBC driver configuration settings.
See also psqlODBC - PostgreSQL ODBC driver for additional HOWTOs and release-specific information associated with the driver software.
Configuring pgjdbc
In order to use the pgjdbc
driver from a Java application, you must include the driver software in your CLASSPATH as described in Setting up the Class Path. See also the full documentation at The PostgreSQL JDBC Interface for information about initializing and using the JDBC driver in your Java applications.