# PostgreSqlFlexibleServerBackupPropertiesProxy

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

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
  ```
