Sys Maintenance: Warehouse Connector Backup and Recovery

Document created by RSA Information Design and Development on Mar 22, 2017Last modified by RSA Information Design and Development on Aug 1, 2017
Version 8Show Document
  • View in full screen mode
 

Administrators can back up and restore configuration and database files for a Warehouse Connector, so if information is lost or deleted, it can be restored.

Back Up Files

To back up the configuration files:

  1. Stop the Warehouse Connector service:
    stop nwwarehouseconnector
  2. Create a tar.bz2 of the folder lockbox stored under /etc/netwitness/ng
    tar -C / -cvPjf wc-lockbox.tar.bz2 /etc/netwitness/ng/lockbox
  3. Create a tar.bz2 of the files NwWarehouseconnector.cfg, multivalue-bootstrap.xml, and multivalue-users.xml (if present)  stored under /etc/netwitness/ng.
    tar -C / -cvPjf wc-files.tar.bz2 /etc/netwitness/ng/NwWarehouseconnector.cfg /etc/netwitness/ng/multivalue-bootstrap.xml /etc/netwitness/ng/multivalue-users.xml

To back up the database files:

  1. Create a tar.bz2 of the bulk folder stored under /var/netwitness/warehouseconnector:
    tar -C / -cvPjf warehouseconnector.tar.bz2 /var/netwitness/warehouseconnector

To back up Puppet and RabbitMQ files:

  1. Create a tar.bz2 file of the Puppet and RabbitMQ files:
    tar -C / --atime-preserve --recursion -cvpjf /root/puppet-rabbit-backup.tar.bz2 --exclude=/var/lib/puppet/bucket --exclude=/var/lib/puppet/reports --exclude=/var/lib/puppet/lib --exclude=/var/lib/rabbitmq/mnesia /var/lib/puppet /etc/puppet /var/lib/rabbitmq
  2. If you are backing up a system that is still being used, start the Warehouse Connector service using the following command:
    start nwwarehouseconnector

Restore Files

When you are restoring files that have been backed up, put the files in a consistent place. In this document, we are using the /tmp/ folder as the location for the tar files to be extracted. You can use a different folder if needed.

  1. Log onto the host that you intend to restore from a saved backup using SSH.
  2. Change to the / directory.

    cd /

  3. Copy the tar file wc-lockbox.tar.bz2, using a utility like Secure Copy (SCP), to the host in the /tmp/ folder.
  4. Extract the tar file by using the following command:

    tar -C / -xvPf /tmp/wc-lockbox.tar.bz2

  5. Copy the tar file wc-files.tar.bz2, using a utility like SCP, to the host in the /tmp/ folder.
  6. Extract the tar file by using the following command:

    tar -C / -xvPf /tmp/wc-files.tar.bz2

  7. Copy the tar file warehouseconnector.tar.bz2, using a utility like SCP, to the host in the /tmp/ folder.
  8. Extract the tar file by using the following command:

    tar -C / -xvPf /tmp/warehouseconnector.tar.bz2

  9. Delete the tar files.

    rm /tmp/wc-lockbox.tar.bz2
    rm /tmp/wc-files.tar.bz2
    rm /tmp/warehouseconnector.tar.bz2

To restore Puppet and RabbitMQ Files:

  1. Change to the / directory.
    cd /
  2. Copy the tar file puppet-rabbit-backup.tar.bz2, using a utility like Secure Copy (SCP), to the host in the /tmp/ directory.
  3. Extract the tar file by using the following command:
    tar -C / -xvjf /tmp/puppet-rabbit-backup.tar.bz2
  4. Delete the tar file.
    rm /tmp/puppet-rabbit-backup.tar.bz2
  5. Start the Warehouse Connector service:
    start nwwarehouseconnector
You are here
Table of Contents > Sys Maintenance: Warehouse Connector Backup and Recovery

Attachments

    Outcomes