You can restore Data Repository after it was backed up. This procedure assumes that the database administrator user is part of the sudoers file.
Note: Usually, you restore Data Repository to the same computer where you backed it up from. However, you can restore Data Repository to a different computer. The computer that you restore to must be configured in the same way that the computer you backed up Data Repository from is. In a cluster environment, each computer you restore to must be configured in the same way that each computer you backed up each Data Repository node from is.
The following configurations have to be the same:
Follow these steps:
service dcmd stop
Data Collector hosts stop.
service dadaemon stop
Note: For information about creating a sudouser with access to a limited set of commands, see the Data Aggregator Installation Guide.
Data Aggregator stops.
/opt/vertica/bin/adminTools
The Administration Tools dialog opens.
You are prompted for the database password.
Data Repository stops.
Note: If Data Repository does not stop, select (2) Stop Vertica on Host from the (7) Advanced Tools Menu.
When you set up automatic backups of Data Repository, you configured the configuration file with a restore point of seven. Data Repository can be restored to the most recent backup or to any of the previous seven incremental backups.
/opt/vertica/bin/vbr.py --task restore --config-file configuration_directory_path_filename
Indicates the filename and directory path of the configuration file you created when you ran the backup configuration procedure. This file is located where you ran the backup utility (/opt/vertica/bin/vbr.py).
For example:
/opt/vertica/bin/vbr.py --task restore --config-file /home/vertica/vert-db-production.ini
Note: In a cluster installation, you can run the restore task from any of the hosts that are participating in the cluster.
/opt/vertica/bin/vbr.py --task restore --config-file configuration__directory_path_filename --archive_name
Indicates the filename and directory path of the specific configuration file you want to restore a specific archive from. You created this configuration file when you ran the backup configuration procedure. This file is located where you ran the backup utility (/opt/vertica/bin/vbr.py).
Indicates the name of the specific restore point that you want to restore to. Change to the backup directory that the configuration file for the restore point indicates. All of the restore points that are available are listed. Determine the archive name for the restore point that you want to restore to.
For example:
/opt/vertica/bin/vbr.py --task restore --config-file myconfig.ini --archive 20131020_170018
Note: In a cluster installation, you can run the restore task from any of the hosts that are participating in the cluster.
/opt/vertica/bin/adminTools
The Administration Tools dialog opens.
You are prompted for the database password.
Data Repository starts.
/etc/init.d/dadaemon start
Data Aggregator starts.
Data Collector hosts start.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|