2.2.9 Backup Directory

Perform the following procedure for Backup Directory:

  1. NOAM VIP Console: Determine if backup directory exists:
    1. Execute the below command on an active NOAM server console (accessed using the VIP) and compare the output:
      
      $ cd /var/TKLC/db/filemgmt/
      $ ls -ltr
    2. Look for the backup directory in the output.
    3. Ensure the directory is already created with appropriate permission. The directory is as follows:
      
      drwxrwx--- 2 awadmin awadm 4096 Dec 19 02:15 backup
      

      If the directory is already there with appropriate permissions, then skip steps 2 and 3.

      If directory does not have the appropriate permissions, then perform step 3.

  2. NOAM VIP Console: Create backup directory:
    1. Run the below command to navigate to the backup directory location:
      cd /var/TKLC/db/filemgmt/
    2. Run the below command to create backup directory:
      $ mkdir backup
    3. Run the below command to verify if directory is created:
      $ ls -ltr /var/TKLC/db/filemgmt/backup

      Note:

      A No such file or directory error message should not display. The directory should display as empty with the total as 0 for content.
  3. NOAM VIP Console: Change permissions of backup directory:
    1. Run the following command to verify directory has been created:
      $ ls -ltr /var/TKLC/db/filemgmt/backup

      Note:

      A No such file or directory error message must display. The directory should display as empty with the total as 0 for content.
    2. Run the below command to change permissions for the backup directory:
      $ chmod 770 /var/TKLC/db/filemgmt/backup
    3. Run the below command to change ownership of backup directory:
      
      $ sudo chown -R awadmin:awadm
      /var/TKLC/db/filemgmt/backup

      Directory displays as follows::

      drwxrwx--- 2 awadmin awadm 4096 Dec 22 02:15
      backup
  4. NOAM VIP Console: Copy the backup file to the backup directory:
    1. Run the below command to copy the backup file to the backup directory:
      $ cp BACKUPFILE /var/TKLC/db/filemgmt/backup
    2. Run the below command to change permissions of files in the backup directory.
      $ chmod 666 Backup.*
    3. Run the following command to change ownership of files in the backup directory:
      $ sudo chown -R awadmin:awadm Backup.*