---
ai:
  exclude: true
search:
  tags:
    - Backup and Restore
    - GET
seo:
  description: >-
    Downloads the backup file for the given job.… Reference for the GET
    /rest/api/backup-restore/jobs/{jobId}/download endpoint in the Confluence
    Data Center API.
sidebar:
  label: Download backup file
  badge: GET
title: Download backup file
type: openapi-operation
---
Downloads the backup file for the given job. Requires site admin or space export permissions for all spaces included in the backup job.

`GET /rest/api/backup-restore/jobs/{jobId}/download`

**Responses**

- `200` — Returns a data stream of the backup file content.
- `404` — Returned if job not found or user doesn't have permissions for the job or the file is missing

Response example, 200:

```json
{
  "id": 1,
  "jobOperation": "BACKUP",
  "jobScope": "SITE",
  "jobState": "IN_PROGRESS",
  "createTime": "2020-01-01T01:01:01Z",
  "startProcessingTime": "2020-01-01T01:01:01Z",
  "finishProcessingTime": "2020-01-01T01:01:01Z",
  "cancelTime": "2020-01-01T01:01:01Z",
  "errorMessage": "Error message",
  "owner": "admin",
  "cancelledBy": "admin",
  "fileName": "backup-2020-01-01.zip",
  "spaceKeys": "spaceKey1,spaceKey2",
  "fileDeleteTime": "2020-01-01T01:01:01Z",
  "fileExists": true
}
```
