Skip to main content

Create DataSync And ResourceSync Policies

Disaster recovery usually needs two sync policies. DataSync protects PVC data. ResourceSync protects Kubernetes resources.

Policy Types

TypePurpose
DataSyncPeriodically backup and restore PVC data to the target cluster
ResourceSyncPeriodically synchronize workloads, services, ingress, config, and secrets
AutoBackupPeriodic application backup, not DR instance sync

Console

Policy management

Create policy

Sync policy type

CRD Example

apiVersion: testudo.softcdata.com/v1
kind: DisasterPolicy
metadata:
name: datasync-5m
spec:
type: DataSync
state: Enabled
schedule: "*/5 * * * *"
---
apiVersion: testudo.softcdata.com/v1
kind: DisasterPolicy
metadata:
name: resourcesync-5m
spec:
type: ResourceSync
state: Enabled
schedule: "*/5 * * * *"

Policies do not protect applications by themselves. They must be referenced by a configuration or instance.