---
title: "Create backup of environment"
method: POST
path: "/projects/{projectId}/environments/{environmentId}/backup"
tags: ["Environment Backups"]
---

# Create backup of environment

`POST /projects/{projectId}/environments/{environmentId}/backup`

Trigger a new backup of an environment to be created. See the
[Backups](https://docs.upsun.com/anchors/environments/backup/)
section of the documentation for more information.

## Path parameters

- `projectId` string, required
- `environmentId` string, required

## Request body

- EnvironmentBackupInput
  - `safe` boolean, required — Take a safe or a live backup

## Response `default`

- AcceptedResponse
  - `status` string, required — The status text of the response
  - `code` integer, required — The status code of the response

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
