public CreateBackupEncryptionConfig EncryptionConfig { get; set; }
Optional. The encryption configuration that will be used to encrypt the
backup. If this field is not specified, the backup will use the same
encryption configuration as the database.
Identifier. Output only for the
[CreateBackupSchedule][DatabaseAdmin.CreateBackupSchededule] operation.
Required for the
[UpdateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule]
operation. A globally unique identifier for the backup schedule which
cannot be changed. Values are of the form
projects/<project>/instances/<instance>/databases/<database>/backupSchedules/[a-z][a-z0-9_\-]*[a-z0-9]
The final segment of the name must be between 2 and 60 characters in
length.
Optional. The retention duration of a backup that must be at least 6 hours
and at most 366 days. The backup is eligible to be automatically deleted
once the retention period has elapsed.
Output only. The timestamp at which the schedule was last updated.
If the schedule has never been updated, this field contains the timestamp
when the schedule was first created.
[[["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."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eBackupSchedule\u003c/code\u003e class within the Google Cloud Spanner Database Administration v1 API, used for defining automated backup creation specifications for Spanner databases.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API documented here is 5.0.0-beta05, with multiple previous versions also available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackupSchedule\u003c/code\u003e class supports both full and incremental backup schedules, offering flexibility in backup strategies.\u003c/p\u003e\n"],["\u003cp\u003eBackups created by the schedule can have their own encryption configuration or inherit the encryption settings from the database, and it allows setting a retention period between 6 hours and 366 days.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackupSchedule\u003c/code\u003e class is an implementation of several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing comprehensive functionality and compatibility.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner Database Administration v1 API - Class BackupSchedule (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/5.0.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.6.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.5.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.4.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.3.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.2.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.1.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.0.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.15.1/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.14.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.13.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.12.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.11.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.10.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.9.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.8.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.7.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.6.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.5.0/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule) \n\n public sealed class BackupSchedule : IMessage\u003cBackupSchedule\u003e, IEquatable\u003cBackupSchedule\u003e, IDeepCloneable\u003cBackupSchedule\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner Database Administration v1 API class BackupSchedule.\n\nBackupSchedule expresses the automated backup creation specification for a\nSpanner database.\nNext ID: 10 \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BackupSchedule \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BackupSchedule](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BackupSchedule](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BackupSchedule](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule), [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.Spanner.Admin.Database.V1](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.Admin.Database.V1.dll\n\nConstructors\n------------\n\n### BackupSchedule()\n\n public BackupSchedule()\n\n### BackupSchedule(BackupSchedule)\n\n public BackupSchedule(BackupSchedule other)\n\nProperties\n----------\n\n### BackupScheduleName\n\n public BackupScheduleName BackupScheduleName { get; set; }\n\n[BackupScheduleName](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupScheduleName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule#Google_Cloud_Spanner_Admin_Database_V1_BackupSchedule_Name) resource name property.\n\n### BackupTypeSpecCase\n\n public BackupSchedule.BackupTypeSpecOneofCase BackupTypeSpecCase { get; }\n\n### EncryptionConfig\n\n public CreateBackupEncryptionConfig EncryptionConfig { get; set; }\n\nOptional. The encryption configuration that will be used to encrypt the\nbackup. If this field is not specified, the backup will use the same\nencryption configuration as the database.\n\n### FullBackupSpec\n\n public FullBackupSpec FullBackupSpec { get; set; }\n\nThe schedule creates only full backups.\n\n### IncrementalBackupSpec\n\n public IncrementalBackupSpec IncrementalBackupSpec { get; set; }\n\nThe schedule creates incremental backup chains.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. Output only for the\n\\[CreateBackupSchedule\\]\\[DatabaseAdmin.CreateBackupSchededule\\] operation.\nRequired for the\n\\[UpdateBackupSchedule\\]\\[google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule\\]\noperation. A globally unique identifier for the backup schedule which\ncannot be changed. Values are of the form\n`projects/\u003cproject\u003e/instances/\u003cinstance\u003e/databases/\u003cdatabase\u003e/backupSchedules/[a-z][a-z0-9_\\-]*[a-z0-9]`\nThe final segment of the name must be between 2 and 60 characters in\nlength.\n\n### RetentionDuration\n\n public Duration RetentionDuration { get; set; }\n\nOptional. The retention duration of a backup that must be at least 6 hours\nand at most 366 days. The backup is eligible to be automatically deleted\nonce the retention period has elapsed.\n\n### Spec\n\n public BackupScheduleSpec Spec { get; set; }\n\nOptional. The schedule specification based on which the backup creations\nare triggered.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The timestamp at which the schedule was last updated.\nIf the schedule has never been updated, this field contains the timestamp\nwhen the schedule was first created."]]