2.2.9 Backup Directory
Perform the following procedure for Backup Directory:
- NOAM VIP Console: Determine if backup directory exists:
- 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 - Look for the backup directory in the output.
- Ensure the directory is already created with appropriate permission. The directory is as follows:
drwxrwx--- 2 awadmin awadm 4096 Dec 19 02:15 backupIf 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.
- Execute the below command on an active NOAM server console (accessed using the VIP) and compare the output:
- NOAM VIP Console: Create backup directory:
- Run the below command to navigate to the backup directory location:
cd /var/TKLC/db/filemgmt/ - Run the below command to create backup directory:
$ mkdir backup - Run the below command to verify if directory is created:
$ ls -ltr /var/TKLC/db/filemgmt/backupNote:
A No such file or directory error message should not display. The directory should display as empty with the total as 0 for content.
- Run the below command to navigate to the backup directory location:
- NOAM VIP Console: Change permissions of backup directory:
- Run the following command to verify directory has been created:
$ ls -ltr /var/TKLC/db/filemgmt/backupNote:
A No such file or directory error message must display. The directory should display as empty with the total as 0 for content. - Run the below command to change permissions for the backup directory:
$ chmod 770 /var/TKLC/db/filemgmt/backup - Run the below command to change ownership of backup directory:
$ sudo chown -R awadmin:awadm /var/TKLC/db/filemgmt/backupDirectory displays as follows::
drwxrwx--- 2 awadmin awadm 4096 Dec 22 02:15 backup
- Run the following command to verify directory has been created:
- NOAM VIP Console: Copy the backup file to the backup directory:
- Run the below command to copy the backup file to the backup directory:
$ cp BACKUPFILE /var/TKLC/db/filemgmt/backup - Run the below command to change permissions of files in the backup directory.
$ chmod 666 Backup.* - Run the following command to change ownership of files in the backup directory:
$ sudo chown -R awadmin:awadm Backup.*
- Run the below command to copy the backup file to the backup directory: