Security & Identity

Backup

Backup — scheduled cluster backups with Velero.

Component:Backup

Examples

01

Example 1

import { Backup } from '@r8s/recipes'

export default <Backup name="daily" />
02

Example 2

import { Backup } from '@r8s/recipes'

export default (
  <Backup
    name="weekly"
    schedule="0 3 * * 0"
    namespaces={['production', 'staging']}
    ttl="720h"
  />
)

Props

namestringRequired

Resource name

namespacestringOptional

Default namespace to back up (used when namespaces is not set)

schedulestringOptional

Cron schedule for backups (defaults to daily at 2 AM)

namespacesstring[]Optional

Namespaces to include in backups (defaults to the current namespace)

storageLocationstringOptional

Velero storage location name (defaults to 'default')

ttlstringOptional

Backup retention (e.g., '720h' for 30 days)