How do I configure scheduled NSP backups?

Purpose

Perform this procedure to configure scheduled backups of the following NSP cluster databases:

  • Kubernetes etcd data

  • NSP file service data

  • Neo4j

  • PostgreSQL

  • nsp-tomcat

  • nrcx-tomcat

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
 

Log in as the root user on the NSP deployer host.


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


Locate the section that begins with the following:

  backups:


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


Save and close the file.

End of steps