Output only. Identifier. Name of the backup to create. It must have the
format"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}".
{backup} cannot be changed after creation. It must be between 3-63
characters long and must be unique within the datasource.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eBackup\u003c/code\u003e class within the Google Cloud Backup and DR Service v1 API, detailing its properties, methods, and usage within the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackup\u003c/code\u003e class is a message object representing a backup, implementing interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e for comprehensive functionality and data handling.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackup\u003c/code\u003e class has several output only fields, including state, create time, update time, consistency time, resource size in bytes at time of backup and it is identified by a name within a specific format.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eBackup\u003c/code\u003e class include details about backup types, backup locks, retention policies, and specific backup properties related to Backup Appliances and Compute Instances.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackup\u003c/code\u003e class supports various versions of the API, with version \u003ccode\u003e2.1.0\u003c/code\u003e being the latest, and includes functionalities for managing backups, such as setting labels, descriptions, and expiration times.\u003c/p\u003e\n"]]],[],null,["# Backup and DR Service v1 API - Class Backup (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Backup)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.1.0/Google.Cloud.BackupDR.V1.Backup)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.0.0/Google.Cloud.BackupDR.V1.Backup)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.2.0/Google.Cloud.BackupDR.V1.Backup)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.1.0/Google.Cloud.BackupDR.V1.Backup)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.0.0-beta02/Google.Cloud.BackupDR.V1.Backup) \n\n public sealed class Backup : IMessage\u003cBackup\u003e, IEquatable\u003cBackup\u003e, IDeepCloneable\u003cBackup\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup and DR Service v1 API class Backup.\n\nMessage describing a Backup object. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Backup \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Backup](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Backup), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Backup](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Backup), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Backup](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Backup), [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.BackupDR.V1](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.BackupDR.V1.dll\n\nConstructors\n------------\n\n### Backup()\n\n public Backup()\n\n### Backup(Backup)\n\n public Backup(Backup other)\n\nProperties\n----------\n\n### BackupApplianceBackupProperties\n\n public BackupApplianceBackupProperties BackupApplianceBackupProperties { get; set; }\n\nOutput only. Backup Appliance specific backup properties.\n\n### BackupApplianceLocks\n\n public RepeatedField\u003cBackupLock\u003e BackupApplianceLocks { get; }\n\nOptional. The list of BackupLocks taken by the accessor Backup Appliance.\n\n### BackupName\n\n public BackupName BackupName { get; set; }\n\n[BackupName](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Backup#Google_Cloud_BackupDR_V1_Backup_Name) resource name property.\n\n### BackupPropertiesCase\n\n public Backup.BackupPropertiesOneofCase BackupPropertiesCase { get; }\n\n### BackupType\n\n public Backup.Types.BackupType BackupType { get; set; }\n\nOutput only. Type of the backup, unspecified, scheduled or ondemand.\n\n### CloudSqlInstanceBackupProperties\n\n public CloudSqlInstanceBackupProperties CloudSqlInstanceBackupProperties { get; set; }\n\nOutput only. Cloud SQL specific backup properties.\n\n### ComputeInstanceBackupProperties\n\n public ComputeInstanceBackupProperties ComputeInstanceBackupProperties { get; set; }\n\nOutput only. Compute Engine specific backup properties.\n\n### ConsistencyTime\n\n public Timestamp ConsistencyTime { get; set; }\n\nOutput only. The point in time when this backup was captured from the\nsource.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The time when the instance was created.\n\n### Description\n\n public string Description { get; set; }\n\nOutput only. The description of the Backup instance (2048 characters or\nless).\n\n### DiskBackupProperties\n\n public DiskBackupProperties DiskBackupProperties { get; set; }\n\nOutput only. Disk specific backup properties.\n\n### EnforcedRetentionEndTime\n\n public Timestamp EnforcedRetentionEndTime { get; set; }\n\nOptional. The backup can not be deleted before this time.\n\n### Etag\n\n public string Etag { get; set; }\n\nOptional. Server specified ETag to prevent updates from overwriting each\nother.\n\n### ExpireTime\n\n public Timestamp ExpireTime { get; set; }\n\nOptional. When this backup is automatically expired.\n\n### GcpBackupPlanInfo\n\n public Backup.Types.GCPBackupPlanInfo GcpBackupPlanInfo { get; set; }\n\nOutput only. Configuration for a Google Cloud resource.\n\n### HasDescription\n\n public bool HasDescription { get; }\n\nGets whether the \"description\" field is set\n\n### HasEtag\n\n public bool HasEtag { get; }\n\nGets whether the \"etag\" field is set\n\n### HasSatisfiesPzi\n\n public bool HasSatisfiesPzi { get; }\n\nGets whether the \"satisfies_pzi\" field is set\n\n### HasSatisfiesPzs\n\n public bool HasSatisfiesPzs { get; }\n\nGets whether the \"satisfies_pzs\" field is set\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. Resource labels to represent user provided metadata.\nNo labels currently defined.\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. Identifier. Name of the backup to create. It must have the\nformat`\"projects/\u003cproject\u003e/locations/\u003clocation\u003e/backupVaults/\u003cbackupvault\u003e/dataSources/{datasource}/backups/{backup}\"`.\n`{backup}` cannot be changed after creation. It must be between 3-63\ncharacters long and must be unique within the datasource.\n\n### PlanInfoCase\n\n public Backup.PlanInfoOneofCase PlanInfoCase { get; }\n\n### ResourceSizeBytes\n\n public long ResourceSizeBytes { get; set; }\n\nOutput only. source resource size in bytes at the time of the backup.\n\n### SatisfiesPzi\n\n public bool SatisfiesPzi { get; set; }\n\nOptional. Output only. Reserved for future use.\n\n### SatisfiesPzs\n\n public bool SatisfiesPzs { get; set; }\n\nOptional. Output only. Reserved for future use.\n\n### ServiceLocks\n\n public RepeatedField\u003cBackupLock\u003e ServiceLocks { get; }\n\nOutput only. The list of BackupLocks taken by the service to prevent the\ndeletion of the backup.\n\n### State\n\n public Backup.Types.State State { get; set; }\n\nOutput only. The Backup resource instance state.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The time when the instance was updated."]]