# The backup job object

> A backup or a restore of one VM.

```json Example
{
  "id": 31,
  "kind": "backup",
  "tag": "manual",
  "backup": null,
  "undo": null,
  "step": "queued",
  "started_at": 1793494800,
  "ended_at": null,
  "error": null
}
```

## Fields

**id** `number`

The job's number.

**kind** `'backup' | 'restore'`

backup or restore.

**tag** `BackupKind | null`

The kind of the backup that a backup job makes; null for a restore.

**backup** `string | null`

The backup that it made or restores, or null.

**undo** `string | null`

The pre-restore backup of a restore, or null.

**step** `BackupStep`

Where the job is: done and failed are its end.

**started_at** `number`

When it started.

**ended_at** `number | null`

When it ended, or null.

**error** `string | null`

Why it failed, or null.
