[misc]
Configures basic backup settings.
Options
passwordFile- Path name of the password configuration file, ignored if dbUseLocalConnection (under [Database] is set to true.
restorePointLimit- Number of earlier backups to retain with the most recent backup. If set to 1 (the default), Vertica maintains two backups: the latest backup and the one before it.
Note
vbrsaves multiple backups to the same location, which are shared through hard links. In such cases, the listbackup task displays the common backup prefix with unique time and date suffixes:my_archive20111111_205841Default: 1
snapshotName- Base name of the backup used in the directory tree structure that
vbrcreates for each node, containing up to 240 characters limited to the following:-
a–z
-
A–Z
-
0–9
-
Hyphen (-)
-
Underscore (_)
Each iteration in this series (up to restorePointLimit) consists of snapshotName and the backup timestamp. Each series of backups should have a unique and descriptive snapshot name. Full and object-level backups cannot share names. For most
vbrtasks, snapshotName serves as a useful identifier in diagnostics and system tables. For object restore and replication tasks, snapshotName is used to build schema names in coexist mode operations.Default:
snapshotName -
tempDir- Absolute path to a temporary storage area on the cluster nodes. This path must be the same on all database cluster nodes.
vbruses this directory as temporary storage for log files, lock files, and other bookkeeping information while it copies files from the source cluster node to the destination backup location.vbralso writes backup logs to this location.The file system at this location must support
fcntl lockf(POSIX) file locking.Caution
Do not use the same location as your database's data or catalog directory. Unexpected files and directories in your data or catalog location can cause errors during database startup or restore.Default:
/tmp/vbr drop_foreign_constraints- If true, all foreign key constraints are unconditionally dropped during object-level restore. You can then restore database objects independent of their foreign key dependencies.
Important
Vertica only uses this option ifobjectRestoreModeis set tocoexist.Default: false
enableFreeSpaceCheck- If true (default) or omitted,
vbrconfirms that the specified backup locations contain sufficient free space to allow a successful backup. If a backup location has insufficient resources,vbrdisplays an error message and cancels the backup. Ifvbrcannot determine the amount of available space or number of nodes in the backup directory, it displays a warning and continues with the backup.Default: true
excludeObjects- Database objects and wildcard patterns to exclude from the set specified by includeObjects. Unicode characters are case-sensitive; others are not.
This parameter can be set only if includeObjects is also set.
hadoop_conf_dir- (Eon Mode on HDFS with high availability (HA) nodes only) Directory path containing the XML configuration files copied from Hadoop.
If the
vbroperation includes more than one HA HDFS cluster, use a colon-separated list to provide the directory paths to the XML configuration files for each HA HDFS cluster. For example:hadoop_conf_dir =path/to/xml-config-hahdfs1:path/to/xml-config-hahdfs2This value must match the HadoopConfDir value set in the bootstrapping file created during installation.
includeObjects- Database objects and wildcard patterns to include with a backup task. You can use this parameter together with excludeObjects. Unicode characters are case-sensitive; others are not.
The
includeObjectsand objects parameters are mutually exclusive. kerberos_keytab_file- (Eon Mode on HDFS only) Location of the keytab file that contains credentials for the Vertica Kerberos principal.
This value must match the KerberosKeytabFile value set in the bootstrapping file created during installation.
kerberos_realm- (Eon Mode on HDFS only) Realm portion of the Vertica Kerberos principal.
This value must match the KerberosRealm value set in the bootstrapping file created during installation.
kerberos_service_name- (Eon Mode on HDFS only) Service name portion of the Vertica Kerberos principal.
This value must match the KerberosServiceName value set in the bootstrapping file created during installation.
Default: vertica
objectRestoreMode- How
vbrhandles objects of the same name when restoring schema or table backups, one of the following:-
createOrReplace:vbrcreates any objects that do not exist. If an object does exist,vbroverwrites it with the version from the archive. -
create:vbrcreates any objects that do not exist and does not replace existing objects. If an object being restored does exist, the restore fails. -
coexist:vbrcreates the restored version of each object with a name formatted as follows:backup_timestamp_objectnameThis approach allows existing and restored objects to exist simultaneously. If the appended information pushes the schema name past the maximum length of 128 characters, Vertica truncates the name. You can perform a reverse lookup of the original schema name by querying the system table TRUNCATED_SCHEMATA.
Tables named in the COPY clauses of data loaders are not changed. You can use ALTER DATA LOADER to rename target tables.
In all modes,
vbrrestores data with the current epoch. Object restore mode settings do not apply to backups and full restores.Default:
createOrReplace -
objects- For an object-level backup or object replication, object (schema or table) names to include. To specify more than one object, enter multiple names in a comma-delimited list. If you specify no objects,
vbrcreates a full backup.This parameter cannot be used together with the parameters includeObjects and excludeObjects.
You specify objects as follows:
-
Specify table names in the form
schema.objectname. For example, to make backups of the tablecustomersfrom the schemafinance, enter:finance.customersIf a public table and a schema have the same name,
vbrbacks up only the schema. Use theschema.objectnameconvention to avoid confusion. -
Object names can include UTF-8 alphanumeric characters. Object names cannot include escape characters, single- (
') or double-quote (") characters. -
Specify non-alphanumeric characters with a backslash () followed by a hex value. For instance, if the table name is
my table(myfollowed by a space character, thentable), enter the object name as follows:objects=my\20table -
If an object name includes a period, enclose the name with double quotes.
-