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.
|
•
|
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.
|
bart [ gen_option ]... [ subcmd ] [ subcmd_option ]...
-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.