Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class ContinuousBackupConfig.
ContinuousBackupConfig describes the continuous backups recovery
configurations of a cluster.
Generated from protobuf messagegoogle.cloud.alloydb.v1.ContinuousBackupConfig
Namespace
Google \ Cloud \ AlloyDb \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ enabled
bool
Whether ContinuousBackup is enabled.
↳ recovery_window_days
int
The number of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days.
The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config.
getEnabled
Whether ContinuousBackup is enabled.
Returns
Type
Description
bool
hasEnabled
clearEnabled
setEnabled
Whether ContinuousBackup is enabled.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getRecoveryWindowDays
The number of days that are eligible to restore from using PITR. To support
the entire recovery window, backups and logs are retained for one day more
than the recovery window. If not set, defaults to 14 days.
Returns
Type
Description
int
setRecoveryWindowDays
The number of days that are eligible to restore from using PITR. To support
the entire recovery window, backups and logs are retained for one day more
than the recovery window. If not set, defaults to 14 days.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getEncryptionConfig
The encryption config can be specified to encrypt the
backups with a customer-managed encryption key (CMEK). When this field is
not specified, the backup will use the cluster's encryption config.
The encryption config can be specified to encrypt the
backups with a customer-managed encryption key (CMEK). When this field is
not specified, the backup will use the cluster's encryption config.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud AlloyDB for PostgreSQL V1 Client - Class ContinuousBackupConfig (1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/php/docs/reference/cloud-alloydb/latest/V1.ContinuousBackupConfig)\n- [1.4.0](/php/docs/reference/cloud-alloydb/1.4.0/V1.ContinuousBackupConfig)\n- [1.3.0](/php/docs/reference/cloud-alloydb/1.3.0/V1.ContinuousBackupConfig)\n- [1.2.0](/php/docs/reference/cloud-alloydb/1.2.0/V1.ContinuousBackupConfig)\n- [1.1.3](/php/docs/reference/cloud-alloydb/1.1.3/V1.ContinuousBackupConfig)\n- [1.0.0](/php/docs/reference/cloud-alloydb/1.0.0/V1.ContinuousBackupConfig)\n- [0.10.3](/php/docs/reference/cloud-alloydb/0.10.3/V1.ContinuousBackupConfig)\n- [0.9.0](/php/docs/reference/cloud-alloydb/0.9.0/V1.ContinuousBackupConfig)\n- [0.8.0](/php/docs/reference/cloud-alloydb/0.8.0/V1.ContinuousBackupConfig)\n- [0.7.1](/php/docs/reference/cloud-alloydb/0.7.1/V1.ContinuousBackupConfig)\n- [0.6.0](/php/docs/reference/cloud-alloydb/0.6.0/V1.ContinuousBackupConfig)\n- [0.5.0](/php/docs/reference/cloud-alloydb/0.5.0/V1.ContinuousBackupConfig)\n- [0.4.0](/php/docs/reference/cloud-alloydb/0.4.0/V1.ContinuousBackupConfig)\n- [0.3.0](/php/docs/reference/cloud-alloydb/0.3.0/V1.ContinuousBackupConfig)\n- [0.2.1](/php/docs/reference/cloud-alloydb/0.2.1/V1.ContinuousBackupConfig)\n- [0.1.3](/php/docs/reference/cloud-alloydb/0.1.3/V1.ContinuousBackupConfig) \nReference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class ContinuousBackupConfig.\n\nContinuousBackupConfig describes the continuous backups recovery\nconfigurations of a cluster.\n\nGenerated from protobuf message `google.cloud.alloydb.v1.ContinuousBackupConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AlloyDb \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getEnabled\n\nWhether ContinuousBackup is enabled.\n\n### hasEnabled\n\n### clearEnabled\n\n### setEnabled\n\nWhether ContinuousBackup is enabled.\n\n### getRecoveryWindowDays\n\nThe number of days that are eligible to restore from using PITR. To support\nthe entire recovery window, backups and logs are retained for one day more\nthan the recovery window. If not set, defaults to 14 days.\n\n### setRecoveryWindowDays\n\nThe number of days that are eligible to restore from using PITR. To support\nthe entire recovery window, backups and logs are retained for one day more\nthan the recovery window. If not set, defaults to 14 days.\n\n### getEncryptionConfig\n\nThe encryption config can be specified to encrypt the\nbackups with a customer-managed encryption key (CMEK). When this field is\nnot specified, the backup will use the cluster's encryption config.\n\n### hasEncryptionConfig\n\n### clearEncryptionConfig\n\n### setEncryptionConfig\n\nThe encryption config can be specified to encrypt the\nbackups with a customer-managed encryption key (CMEK). When this field is\nnot specified, the backup will use the cluster's encryption config."]]