Previous Topic: Configure a Data Repository Backup to a Remote Host (Single-Node and Cluster Installations)Next Topic: Configure Data Repository


Configure a Data Repository Backup to the Same Host (Single-Node and Cluster Installations)

You can back up Data Repository to the same host. In a cluster environment, you must back up each node in the cluster.

Follow these steps:

  1. Log in to Data Repository as the Linux user account for the database administrator user.

    Note: In a cluster installation, you can log in to Data Repository from any of the three hosts that is participating in the cluster.

  2. Be sure that the Linux user account for the database administrator user is set up with a passwordless ssh key.

    Note: In a cluster installation, ensure that passwordless ssh keys are set up for each host that is participating in the cluster.

    Follow these steps:

    1. To see if a passwordless ssh key is already set up, type the following command:
      ssh hostname ls
      
      hostname

      Indicates 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. You do not need to do anything further.

    2. If you are prompted for a password, ignore the prompt and hit Ctrl+C. To set up the Linux user account for the database administrator user with a passwordless ssh key, type 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
      

      To confirm that you are not prompted for a password, retype the following command:

      ssh hostname ls
      
      hostname

      Indicates the name of the host where Data Repository is installed.

    Important! If you do not set up the passwordless ssh key, you cannot back up Data Repository. Set up a passwordless ssh key even if you are saving the backup to the same computer.

  3. To create the backup directory, type the following command:
    mkdir backup_directory
    
    backup_directory

    Indicates the directory where you want to back up Data Repository to. 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 through utilization of the chown and chmod commands.

    Note: In a cluster installation, create the backup directories before you back up the database. You can choose a different backup directory for each host.

    For example:

    mkdir ~dradmin/backups
    

More information:

How to Set Up Automatic Backups of Data Repository (Single-Node and Cluster Installations)