How do I retrieve cluster database backup files?

Purpose

Perform this procedure to locate and retrieve NSP cluster database backup files.

Steps
 
1 

Open a terminal session to the NSP master node (typically node1).


2 

Log in as the root or NSP admin user.


3 

List available backup files for a cluster:

# kubectl exec -n nsp-psa-restricted nsp-backup-storage-0 -- ls /tmp/backups

The system returns a list of backups.


4 

Copy the name of the most recent backup and then run the following command to copy it to a backup directory on the master node:

# kubectl cp -n nsp-psa-restricted nsp-backup-storage-0:/tmp/backups/backup_name /opt/nsp/backups/

where

  • backup_name is the NSP backup file you are retrieving, eg. nsp-tomcat. If you want to retrieve a specific backup set, specify a backup file name. Otherwise, you can retrieve the entire /tmp/backups directory contents.

  • /opt/nsp/backups/ is the target location of the copied backup file(s). You can specify a different location.


5 

Close the console window.

End of steps