Backup
When you include a Backup custom resource in an application, the Replicated admin console enables snapshots for the application.
For more information about the Backup custom resource, including all options for this custom resource, see Backups in the Velero documentation.
This custom resource supports optional resource installations. For more information, see Include optional resources.
apiVersion: velero.io/v1
kind: Backup
metadata:
name: backup
annotations:
"kots.io/when": '{{repl ConfigOptionEquals "postgres_type" "embedded_postgres" }}'
spec: {}
Limitations for Full Snapshots
The following top-level fields for Backup custom resources are not supported in Full snapshots:
snapshotVolumes
volumeSnapshotLocations
labelSelector
,includedResources
andexcludedResources
All resources are included by default. To exclude resources from the backup, the velero.io/exclude-from-backup=true
label must be used and added to the resource instead.
includeClusterResources
: this will always be set totrue
.ttl
: this is set to720h
(1 month) by default and is only configurable by the customer.