Table of Contents Previous Next


3 Using BART : 3.3 Basic BART Subcommand Usage

Invoke the bart program (located in the BART_HOME/bin) directory with the desired subcommand and any applicable subcommand options to manage BART:
CHECK-CONFIG. Check the setting of the parameters in the BART configuration file and the proper setup of the database servers for WAL archiving and taking of backups. See Section 3.4.1.
INIT. Create the BART backup catalog directories, rebuild the backupinfo files, and set the archive_command in the Postgres server based on the setting of the archive_command in the bart.cfg. See Section 3.4.2 for details.
BACKUP. Take a full backup or an incremental backup. See Section 3.4.3.
SHOW-SERVERS. Display the database servers managed by BART. See Section 3.4.4.
SHOW-BACKUPS. Display information for the backups taken by BART. See Section 3.4.5.
VERIFY-CHKSUM. Verify the checksums on the full backups. See Section 3.4.6.
MANAGE. Manage backups using the retention policy. Compress the archived WAL files. See Section 3.4.7.
RESTORE. Restore a backup and generate an appropriate recovery.conf file including, if desired, a restore_command for restoring archived WAL files for point-in-time recovery. See Section 3.4.8.
DELETE. Delete a backup. See Section 3.4.9.
There are a number of general BART options that can be given immediately following specification of the bart program. Following the general BART options (if any are given), you can specify a BART subcommand.
o
Be able to run the bart program and the bartscanner program.
bart [ gen_option ]... [ subcmd ] [ subcmd_option ]...
The following are the general BART options denoted as gen_option in the above syntax diagram.
-h, --help
-v, --version
-d, --debug
-c, --config-path config_file_path
Specifies config_file_path as the full directory path to a BART configuration file. Use this option if you do not want to use the default BART configuration file BART_HOME/etc/bart.cfg.
Set the LD_LIBRARY_PATH environment variable for the BART user account to include the directory containing the libpq library. This directory is POSTGRES_INSTALL_HOME/lib as shown by the following example:
It is suggested that the PATH and the LD_LIBRARY_PATH environment variable settings be placed in the BART user account’s profile. See Step 2 in Adding Configuration Parameter Values Section of the EDB Postgres Backup and Recovery Installation and Upgrade Guide for details.

3 Using BART : 3.3 Basic BART Subcommand Usage

Table of Contents Previous Next