Configure the Data Repository Host for a Local Backup

If you do not have a dedicated backup host, you can back up the Data Repository locally. For best data integrity, have a dedicated backup host.
If you do not have a dedicated backup host, you can back up the data repository locally. For best data integrity, have a dedicated backup host.
For more information about how to back up the data repository, see Back Up the Data Repository.
Follow these steps:
  1. Log in to the data repository host as the database administrator user. In a cluster installation, you can log in to any host in the cluster.
  2. Verify that the database administrator user is set up with a passwordless ssh key by issuing the following command. In a cluster installation, ensure that passwordless ssh keys are set up for
    each
    host that is participating in the cluster:
    ssh
    hostname
    ls
    hostname
    is the name of the host where Data Repository is installed.
    If the passwordless ssh key is set up, you are
    not
    prompted for a password. If you are prompted for a password, set up passwordless ssh:
    1. Press the Ctrl+C keys on your keyboard.
    2. Set up the Linux user account for the database administrator user with a passwordless ssh key by issuing the following command:
      ssh-keygen -N "" -t rsa -f ~/.ssh/id_rsa
      cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys2
      chmod 644 ~/.ssh/authorized_keys2
    3. Copy the SSH credentials to the other hosts in the cluster by issuing the following command:
      ssh-copy-id -i
      dradmin
      @
      other-hostname-in-the-cluster
    4. Confirm that you are
      not
      prompted for a password by issuing the following command:
      ssh hostname ls
  3. Create a backup directory for each host in the cluster by issuing the following command:
    mkdir
    backup_directory
    backup_directory
    specifies the directory where you want to save the backup files. Select a backup directory that is on a disk partition with a large amount of free space. If these directories are not writable by the database administrator user, give this user access to these directories.
    The data repository host is ready for the backup to run.