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

# PostgresBackup

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

One base backup of a cluster; the write-ahead log between two of them is what a point-in-time restore replays.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `CompleteTime` | `DateTimeOffset?` | `completeTime` | The completeTime property |
| `FailureReason` | `string?` | `failureReason` | Why a backup failed. |
| `Kind` | `string?` | `kind` | SCHEDULED (the platform's schedule), ON_DEMAND (a request) or PRE_CHANGE (taken before a size or version change). |
| `Name` | `string?` | `name` | Resource name: `projects/{project}/locations/{location}/postgresClusters/{cluster}/backups/{backup}`. |
| `RetainUntil` | `DateTimeOffset?` | `retainUntil` | When the platform stops keeping it. |
| `SecondCopy` | `bool?` | `secondCopy` | Whether a second copy sits at another location. |
| `SizeBytes` | `long?` | `sizeBytes` | Size in bytes when complete. |
| `StartTime` | `DateTimeOffset?` | `startTime` | The startTime property |
| `State` | `Models.Databases.PostgresBackup_state?` | `state` | The state property |
| `Uid` | `string?` | `uid` | The uid property |
