We will see how we can create full backup routine for a single node Vertica database. The vbr.py utility uses a configuration file for the information required to back up and restore a full or object-level backup, or to copy a cluster. You cannot run vbr.py without a configuration file, since no default file exists.
[dbadmin@bih001 ~]$ vbr.py --setupconfig
Snapshot name (backup_snapshot): Full
Backup vertica configurations? (n) [y/n]: y
Number of restore points (1): 1
Specify objects (no default):
Vertica user name (dbadmin):
Save password to avoid runtime prompt? (n) [y/n]: y
Password to save in vbr config file (no default):
Node v_test_node0001
Backup host name (no default): bih001
Backup directory (no default): /tmp
Config file name (Full.ini):
Change advanced settings? (n) [y/n]: n
Saved vbr configuration to Full.ini.
[dbadmin@bih001 ~]$ vbr.py -t backup --config-file Full.ini
Preparing...
Found Database port: 5433
Copying...
[==================================================] 100%
All child processes terminated successfully.
Committing changes on all backup sites...
backup done!
[dbadmin@bih001 ~]$ cat Full.ini
[Misc]
snapshotName = Full
verticaConfig = True
restorePointLimit = 1
[Database]
dbName = test
dbUser = dbadmin
dbPassword = test
[Transmission]
[Mapping]
v_test_node0001 = bih001:/tmp