Skip to content

GcpNfsBackupSchedule Custom Resource ​

WARNING

This is a beta feature available only per request for SAP-internal teams.

The gcpnfsbackupschedule.cloud-resources.kyma-project.io custom resource (CR) represents the user-defined schedule for creating a backup of the GcpNfsVolume instances at regular intervals. The CR performs the following actions:

  • Creates the backups by creating the gcpnfsvolumebackup.cloud-resources.kyma-project.io resources at the specified interval.
  • Enables you to specify days and times in the form of CRON expressions to automatically create the backups.
  • Automatically deletes the backups when the backup reaches the configured maximum retention days value.
  • Enables you to temporarily suspend or resume the backup creation/deletion.

Specification ​

This table lists the parameters of the given resource together with their descriptions:

Spec:

ParameterTypeDescription
nfsVolumeRefobjectRequired. GcpNfsVolume reference.
nfsVolumeRef.namestringRequired. Name of the existing GcpNfsVolume.
nfsVolumeRef.namespacestringOptional. The namespace of the existing GcpNfsVolume. Defaults to the namespace of the GcpNfsBackupSchedule resource if not provided.
locationstringOptional. The region where backup resides. Defaults to the region of the source GcpNfsVolume.
schedulestringOptional. CRON type expression for the schedule. When this value is empty or not specified, this schedule runs only once at the specified start time. See also Schedule Syntax.
prefixstringOptional. Prefix for the name of the created GcpNfsVolumeBackup resources. Defaults to name of this schedule.
startTimemetav1.TimeOptional. Start time for the schedule. Value cannot be from the past. When not specified, the schedule becomes effective immediately.
endTimemetav1.TimeOptional. End time for the schedule. Value cannot be from the past or before the startTime. When not specified, the schedule runs indefinitely.
maxRetentionDaysintOptional. Maximum number of days to retain the backup resources. If not specified, the default value is 375 days. If deleteCascade is true for this schedule, then all the backups are deleted when the schedule is deleted irrespective of this configuration value.
maxReadyBackupsintOptional. Maximum number of backups in Ready state to be retained. Default value is 100.
maxFailedBackupsintOptional. Maximum number of backups in Failed state to be retained. Default value is 5.
suspendbooleanOptional. Specifies whether or not to suspend the schedule temporarily. Defaults to false.
deleteCascadebooleanOptional. Specifies whether to cascade delete the backup resources when this schedule is deleted. Defaults to false.

Status:

ParameterTypeDescription
state (required)stringSignifies the current state of CustomObject. Contains one of the following states: Processing, Pending, Suspended, Active, Done or Error.
conditions[]objectRepresents the current state of the CR's conditions.
conditions.lastTransitionTimestringDefines the date of the last condition status change.
conditions.messagestringProvides more details about the condition status change.
conditions.reasonstringDefines the reason for the condition status change.
conditions.status (required)stringRepresents the status of the condition. The value is either True, False, or Unknown.
conditions.typestringProvides a short description of the condition.
nextRunTimes[]stringProvides the preview of the times when the next backups will be created.
nextDeleteTimesmap[string]stringProvides the backup objects and their expected deletion time (calculated based on maxRetentionDays).
lastCreateRunstringProvides the time when the last backup was created.
lastCreatedBackupobjectRefProvides the object reference of the last created backup.
lastDeleteRunstringProvides the time when the last backup was deleted.
lastDeletedBackups[]objectRefProvides the object references of the last deleted backups.
schedulestringProvides the cron expression of the current active schedule.
backupIndexintProvides the current index of the backup created by this schedule.
backupCountintProvides the the number of backups currently present in the system.

Sample Custom Resource ​

See an example GcpNfsBackupSchedule custom resource:

yaml
apiVersion: cloud-resources.kyma-project.io/v1beta1
kind: GcpNfsBackupSchedule
metadata:
  name: gcp-nfs-backup-schedule
  namespace: kyma-dev
spec:
  nfsVolumeRef:
    name: gcp-nfs-sample-01
    namespace: kyma-dev
  schedule: "0 0 * * *"
  prefix: gcp-nfs-daily-backup
  startTime: 2024-09-01T00:00:00Z
  endTime: 2025-12-31T00:00:00Z
  maxRetentionDays: 365
  maxReadyBackups: 150
  suspend: false
  deleteCascade: true