How do I configure scheduled NSP backups?
Purpose
Perform this procedure to configure scheduled backups of the following NSP cluster databases:
Note: In the above list, backup of the OpenSearch database refers to backup and restore of configured data where the data is configured by the user or already available in the OpenSearch cluster. It is not related to log data in How do I restore the NSP OpenSearch log data?.
Scheduled backups are enabled by default, and scheduled to run daily at 12:30 AM UTC.
Note: By default, the NSP retains the three most recent scheduled backups.
Note: release-ID in a file path has the following format:
R.r.p-rel.version
where
R.r.p is the NSP release, in the form MAJOR.minor.patch
version is a numeric value
Steps
1 |
Log in as the root or NSP admin user on the NSP deployer VM. |
2 |
Open the following file with a plain-text editor such as vi: /opt/nsp/NSP-CN-DEP-release-ID/NSP-CN-release-ID/config/nsp-config.yml |
3 |
Locate the section that begins with the following: backups: |
4 |
Configure the following parameters: Note: If the schedule value is an empty string, no scheduled backup is performed. Note: See the RHEL cron man page for information about defining a crontab schedule. schedule: "definition" retained: n where definition is a UNIX crontab schedule definition; for example, “30 0 * * *” specifies the default backup schedule of 12:30 a.m. daily n is the number of backups to retain |
5 |
Save and close the file. End of steps |