---
title: "Enables periodic backup of stateful partitions under this Service Fabric service."
method: POST
path: "/Services/{serviceId}/$/EnableBackup"
tags: ["BackupRestore"]
---

# Enables periodic backup of stateful partitions under this Service Fabric service.

`POST /Services/{serviceId}/$/EnableBackup`

Enables periodic backup of stateful partitions which are part of this Service Fabric service. Each partition is backed up individually as per the specified backup policy description. In case the application, which the service is part of, is already enabled for backup then this operation would override the policy being used to take the periodic backup for this service and its partitions (unless explicitly overridden at the partition level).
Note only C# based Reliable Actor and Reliable Stateful services are currently supported for periodic backup.

## Path parameters

- `serviceId` string, required

## Query parameters

- `api-version` '6.4', required
- `timeout` integer

## Request body

- EnableBackupDescription — Specifies the parameters needed to enable periodic backup.
  - `BackupPolicyName` string, required — Name of the backup policy to be used for enabling periodic backups.

## Response `202`

A 202 status code indicates the request to enable service backup has been accepted.

## Other responses

- `default` — The detailed error response.

---

[API](https://skmtc.net/azure/apis/servicefabric-servicefabric.md) · [All operations](https://skmtc.net/azure/apis/servicefabric-servicefabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/servicefabric-servicefabric/revisions/8fd479ce0f16/schema)
