# PUBLIC_BACKUP_FILE_TOO_LARGE: The backup file is larger than the maximum allowed size (1 TiB).

- Category: Public API
- HTTP status: 413
- Reference: https://docs.bizkithub.com/en/errors/PUBLIC_BACKUP_FILE_TOO_LARGE

## What happened

A single backup can be at most 1 TiB (1 099 511 627 776 bytes). The limit is checked against `size` in `/backup/start` and against the real stored size on `/backup/complete`.

## How to resolve

1. Split the backup into several files (for example per database or per directory).
2. Compress the data before upload (zstd, gzip).

## Example response

```json
{
  "state": "error",
  "code": 413,
  "message": "The backup file is larger than the maximum allowed size (1 TiB).",
  "errorCode": "PUBLIC_BACKUP_FILE_TOO_LARGE",
  "hint": "A single backup can be at most 1 TiB (1 099 511 627 776 bytes). The limit is checked against `size` in `/backup/start` and against the real stored size on `/backup/complete`.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_BACKUP_FILE_TOO_LARGE"
}
```
