# PostgreSqlFlexibleServerBackupPropertiesProxy

- Module: [Aspire.Hosting.Azure.Provisioning.PostgreSql](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the PostgreSqlFlexibleServerBackupProperties Azure Provisioning model.

## Definition

```typescript
interface PostgreSqlFlexibleServerBackupPropertiesProxy {
  backupRetentionDays: BicepValueProxy | number;
  readonly earliestRestoreOn: BicepValueProxy | datetimeoffset;
  geoRedundantBackup: BicepValueProxy | PostgreSqlFlexibleServerGeoRedundantBackupEnum;
  clearBackupRetentionDays(): void;
  clearGeoRedundantBackup(): void;
}
```

## Properties

- `backupRetentionDays`: `BicepValueProxy | number` `get - set` -- Gets or sets the BackupRetentionDays provisioning property.
- `earliestRestoreOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the EarliestRestoreOn provisioning property.
- `geoRedundantBackup`: `BicepValueProxy | PostgreSqlFlexibleServerGeoRedundantBackupEnum` `get - set` -- Gets or sets the GeoRedundantBackup provisioning property.

## Methods

- [clearBackupRetentionDays](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlflexibleserverbackuppropertiesproxy/clearbackupretentiondays.md) -- `method` -- Clears the BackupRetentionDays provisioning property.
    ```typescript
  clearBackupRetentionDays(): void
  ```
- [clearGeoRedundantBackup](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqlflexibleserverbackuppropertiesproxy/cleargeoredundantbackup.md) -- `method` -- Clears the GeoRedundantBackup provisioning property.
    ```typescript
  clearGeoRedundantBackup(): void
  ```
