How do I configure scheduled NSP backups?
Purpose
Perform this procedure to configure scheduled backups of the following NSP cluster databases:
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 user on the NSP deployer host. |
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 |