public sealed class ContinuousBackupConfig : IMessage<ContinuousBackupConfig>, IEquatable<ContinuousBackupConfig>, IDeepCloneable<ContinuousBackupConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1alpha API class ContinuousBackupConfig.
ContinuousBackupConfig describes the continuous backups recovery
configurations of a cluster.
public EncryptionConfig EncryptionConfig { get; set; }
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 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eContinuousBackupConfig\u003c/code\u003e class in the Google Cloud AlloyDB v1alpha API is used to manage the continuous backup settings for a database cluster.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows users to enable or disable continuous backups using the \u003ccode\u003eEnabled\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify a custom encryption key for backups via the \u003ccode\u003eEncryptionConfig\u003c/code\u003e property, or default encryption will be used.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRecoveryWindowDays\u003c/code\u003e property determines the duration, in days, for which point-in-time recovery (PITR) is available, with a default of 14 days if unspecified.\u003c/p\u003e\n"],["\u003cp\u003eThe API contains two versions, with the most recent being \u003ca href=\"/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.ContinuousBackupConfig\"\u003e1.0.0-alpha10\u003c/a\u003e.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1alpha API - Class ContinuousBackupConfig (1.0.0-alpha12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.ContinuousBackupConfig)\n- [1.0.0-alpha11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/1.0.0-alpha11/Google.Cloud.AlloyDb.V1Alpha.ContinuousBackupConfig) \n\n public sealed class ContinuousBackupConfig : IMessage\u003cContinuousBackupConfig\u003e, IEquatable\u003cContinuousBackupConfig\u003e, IDeepCloneable\u003cContinuousBackupConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1alpha API class ContinuousBackupConfig.\n\nContinuousBackupConfig describes the continuous backups recovery\nconfigurations of a cluster. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ContinuousBackupConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ContinuousBackupConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.ContinuousBackupConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ContinuousBackupConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.ContinuousBackupConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ContinuousBackupConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.ContinuousBackupConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AlloyDb.V1Alpha](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Alpha.dll\n\nConstructors\n------------\n\n### ContinuousBackupConfig()\n\n public ContinuousBackupConfig()\n\n### ContinuousBackupConfig(ContinuousBackupConfig)\n\n public ContinuousBackupConfig(ContinuousBackupConfig other)\n\nProperties\n----------\n\n### Enabled\n\n public bool Enabled { get; set; }\n\nWhether ContinuousBackup is enabled.\n\n### EncryptionConfig\n\n public EncryptionConfig EncryptionConfig { get; set; }\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### HasEnabled\n\n public bool HasEnabled { get; }\n\nGets whether the \"enabled\" field is set\n\n### RecoveryWindowDays\n\n public int RecoveryWindowDays { get; set; }\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."]]