[SDK reference](../../index.md) / [Models](../index.md) / [Storage](index.md)

# BackupPlan

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Storage`  

A backup plan: which disks, when, how long, and whether a copy goes to a peer location (ADR-0504, ADR-0511).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Storage.BackupPlan_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `BackendMode` | `string?` | `backendMode` | Backend mode: SIMULATED or ARCHIVE_RESTIC. |
| `BackupBytes` | `long?` | `backupBytes` | Bytes the plan's backups occupy (the archives as stored, before encryption overhead). |
| `BackupCount` | `int?` | `backupCount` | Backups this plan has made that still exist. |
| `CopyTo` | `string?` | `copyTo` | A peer location that receives a copy of every backup (ADR-0511); empty keeps the backups in this location only. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Enabled` | `bool?` | `enabled` | Whether the schedule runs; a paused plan keeps its backups until they expire. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `Labels` | `Models.Storage.BackupPlan_labels?` | `labels` | At most 64. |
| `LastRestoreTestTime` | `DateTimeOffset?` | `lastRestoreTestTime` | When a backup of this plan was last restored to a new disk (the restore test; ADR-0511 item 6). |
| `LastRunMessage` | `string?` | `lastRunMessage` | Why the latest run failed, in words. |
| `LastRunState` | `string?` | `lastRunState` | How the latest run ended: SUCCEEDED, FAILED or PARTIAL (some disks failed). |
| `LastRunTime` | `DateTimeOffset?` | `lastRunTime` | When the latest backup run started. |
| `Location` | `string?` | `location` | Location ID where the plan and its disks are homed (for example lab-de1). |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `NextRunTime` | `DateTimeOffset?` | `nextRunTime` | When the next scheduled backup is due. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `Retention` | `Models.Storage.BackupRetention?` | `retention` | How long backups are kept. |
| `Schedule` | `Models.Storage.BackupSchedule?` | `schedule` | When the plan runs. |
| `Simulated` | `bool?` | `simulated` | True when backed by the fake driver in lab or test environments rather than the cell's real archive target. |
| `Sources` | `List<string>?` | `sources` | Disks to back up, as resource names (projects/{p}/locations/{l}/disks/{d}) or disk IDs of this location (1 to 20). File shares are not archived yet. |
| `State` | `Models.Storage.BackupPlan_state?` | `state` | The state property |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
