Skip to main content
Version: 1.2

API Reference

Policy Specification

FieldTypeRequiredDescriptionExample
metadata.namestringYesUnique name for the policymongodb-backup-daily
metadata.namespacestringYesNamespace where policy is createdresiliency-system
spec.templateNamestringYesTemplate to use for the policymongodb-backup
spec.suspendedbooleanNoWhether the policy is suspendedfalse
spec.paramsarrayYesArray of parameters for the templateSee parameters table below
spec.placement.clusterNamestringNoTarget cluster ID5b2613a542a883618f0fe1da26396a721d063219
spec.placement.credentialNamestringNoCluster credential namecluster-admin
spec.placement.createNamespacebooleanNoCreate namespace if it doesn't existtrue

Parameters (MongoDB Backup)

ParameterTypeRequiredDescriptionExample
mongodb-assetstringYesID of the MongoDB asset44bd1dd01554be8285626843082c5eaca28f6779
mongodb-databasestringYesDatabase name to backupproduction
mongodb-credentialstringYesCredential name for MongoDB accessmongodb-root
bucket-assetstringYesID of the bucket asset01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialstringYesCredential name for bucket accessaws-s3-backup
bucket-pathstringYesPath within bucket for backups/backups/mongodb
schedulestring (cron)YesBackup schedule in cron format0 2 * * *
mongodb-optsstringNoAdditional mongodump options--gzip --oplog
use-gzipbooleanNoEnable GZIP compressiontrue

Parameters (PostgreSQL Backup)

ParameterTypeRequiredDescriptionExample
postgresql-assetstringYesID of the PostgreSQL asset44bd1dd01554be8285626843082c5eaca28f6779
postgresql-databasestringYesDatabase name to backupproduction
postgresql-credentialstringYesCredential name for PostgreSQL accesspostgres-admin
bucket-assetstringYesID of the bucket asset01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialstringYesCredential name for bucket accessaws-s3-backup
bucket-pathstringYesPath within bucket for backups/backups/postgresql
schedulestring (cron)YesBackup schedule in cron format0 2 * * *
postgresql-optsstringNoAdditional pg_dump options--verbose --single-transaction
postgresql-versionstringNoPostgreSQL client version15
use-gzipbooleanNoEnable GZIP compressiontrue
pvc-storage-classstringNoStorage class for backup volumestandard
pvc-sizestringNoStorage size for backup volume10

Parameters (MySQL Backup)

ParameterTypeRequiredDescriptionExample
mysql-assetstringYesID of the MySQL asset44bd1dd01554be8285626843082c5eaca28f6779
mysql-databasestringYesDatabase name to backupproduction
mysql-credentialstringYesCredential name for MySQL accessmysql-root
bucket-assetstringYesID of the bucket asset01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialstringYesCredential name for bucket accessaws-s3-backup
bucket-pathstringYesPath within bucket for backups/backups/mysql
schedulestring (cron)YesBackup schedule in cron format0 2 * * *
mysql-optsstringNoAdditional mysqldump options--single-transaction --routines
mysql-versionstringNoMySQL client version8.0
use-gzipbooleanNoEnable GZIP compressiontrue

Parameters (SQL Server Backup)

ParameterTypeRequiredDescriptionExample
sqlserver-assetstringYesID of the SQL Server assetd55be83a123f11eda91b0242ac120002
sqlserver-databasestringYesDatabase name to backupproduction
sqlserver-credentialstringYesWorkload Identity credential name for SQL Server accesssqlserver-identity
bucket-assetstringYesID of the bucket asset01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialstringYesCredential name for bucket accessazure-blob-backup
bucket-pathstringYesPath within bucket for backups/backups/sqlserver
schedulestring (cron)YesBackup schedule in cron format0 2 * * *
use-gzipbooleanNoEnable GZIP compressiontrue
pvc-storage-classstringNoStorage class for backup volumeazurefile
pvc-sizestringNoStorage size for backup volume10

Parameters (Redis Backup Policy)

ParameterTypeRequiredDescriptionExample
redis-assetAssetYesThe Redis asset to backup44bd1dd01554be8285626843082c5eaca28f6779
redis-credentialCredentialYesThe credential name to access Redisredis-auth
bucket-assetAssetYesThe Bucket asset where backups will be saved01409a2b09f336c6533729d4c04866803ec8bf67
redis-backup-optsStringNoThe opts for Redis backup--rdb --append-only
bucket-credentialCredentialYesThe credential name to access Bucketaws-s3-backup
bucket-pathPathYesThe path inside the bucket where backup is saved/backups/redis
scheduleScheduleYesThe backup schedule in Cron format0 2 * * *
use-gzipBoolYesEnable GZIP compressiontrue
kubernetes-resourcesKubernetesResourcesYesComputational resources to be used{"requests": {"cpu": "100m", "memory": "128Mi"}}