# basemodo backups

List an App's Backups, newest first, to choose one to restore.

```sh
basemodo backups [OPTIONS]
```

Basemodo's daily ones (kind daily) and, on Pro and Workspace, its hourly ones (hourly, kept 24 hours), those taken with `basemodo backup` (manual), and a deleted App's last one (final), each until it expires; together at most ten times the App's disk (cap_bytes), the oldest going first. An App that has not run since its newest Backup gets no new one and keeps that one past its expiry until its next (kept_as_newest).

## Arguments

- `--app <APP>`: The App whose Backups to list. Default: the one named after the current folder.

Like every command, it also takes the [global options](https://basemodo.com/docs/cli#global-options) `--json` and `--api-url`.

## Examples

List the Backups of the App of this folder:

```sh
basemodo backups
```

List another App's:

```sh
basemodo backups --app lunch-rota
```

## Output

With `--json`, it prints {"backups": [{"id", "app", "kind", "size_bytes", "created_at", "expires_at", "kept_as_newest"}], "retention_days", "hourly_backups", "cap_bytes"}.

## From an agent

Basemodo's [MCP](https://basemodo.com/docs/mcp) serves it as the tool [`backups`](https://basemodo.com/docs/mcp/tools/backups). It only reads, so an agent's client may run it without asking you. Its arguments are the command's, named as JSON keys: `app` (text). It answers what the command prints with `--json`.